diff options
| author | Ayinaki <ayinakidev@gmail.com> | 2026-11-22 02:26:36 +0000 |
|---|---|---|
| committer | Ayinaki <ayinakidev@gmail.com> | 2026-11-22 03:39:24 +0000 |
| commit | ab1ff9f9c5aef8c13abcb0fa9fc6e28d52f063a8 (patch) | |
| tree | a1068161a0c86c1036e3e29a4f05d639ad6d8674 /runtime/test/d3d12_method_variants_test.cpp | |
| parent | dedd75c1d1db4e042f559f0dd39e872313457bf4 (diff) | |
Support R10G10B10_XR_BIAS_A2_UNORM textures
Map XR_BIAS to the bit-compatible A2B10G10R10 UNORM Vulkan format, report only the 2D and cast-within-bit-layout support the layer provides, and refuse the mip, MSAA and 3D cases the PC runtime refuses. Test creation, allocation, footprints and the resource-method variants.
Diffstat (limited to 'runtime/test/d3d12_method_variants_test.cpp')
| -rw-r--r-- | runtime/test/d3d12_method_variants_test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/test/d3d12_method_variants_test.cpp b/runtime/test/d3d12_method_variants_test.cpp index 7bfba2a07..27916d092 100644 --- a/runtime/test/d3d12_method_variants_test.cpp +++ b/runtime/test/d3d12_method_variants_test.cpp | |||
| @@ -112,6 +112,8 @@ std::vector<Case> cases() { | |||
| 112 | {"full mip chain", D3D12_HEAP_TYPE_DEFAULT, | 112 | {"full mip chain", D3D12_HEAP_TYPE_DEFAULT, |
| 113 | texture_desc(16, 16, DXGI_FORMAT_R16G16B16A16_FLOAT, D3D12_RESOURCE_FLAG_NONE, 0, 2)}, | 113 | texture_desc(16, 16, DXGI_FORMAT_R16G16B16A16_FLOAT, D3D12_RESOURCE_FLAG_NONE, 0, 2)}, |
| 114 | {"BC7 array", D3D12_HEAP_TYPE_DEFAULT, texture_desc(8, 8, DXGI_FORMAT_BC7_UNORM, D3D12_RESOURCE_FLAG_NONE, 1, 3)}, | 114 | {"BC7 array", D3D12_HEAP_TYPE_DEFAULT, texture_desc(8, 8, DXGI_FORMAT_BC7_UNORM, D3D12_RESOURCE_FLAG_NONE, 1, 3)}, |
| 115 | {"XR_BIAS texture", D3D12_HEAP_TYPE_DEFAULT, | ||
| 116 | texture_desc(8, 8, DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM, D3D12_RESOURCE_FLAG_NONE)}, | ||
| 115 | {"volume", D3D12_HEAP_TYPE_DEFAULT, volume_desc(0)}, | 117 | {"volume", D3D12_HEAP_TYPE_DEFAULT, volume_desc(0)}, |
| 116 | {"multisampled", D3D12_HEAP_TYPE_DEFAULT, ms}, | 118 | {"multisampled", D3D12_HEAP_TYPE_DEFAULT, ms}, |
| 117 | // Refused by the base method; each variant must refuse them the same way. | 119 | // Refused by the base method; each variant must refuse them the same way. |