diff options
| author | ismailchaka1 <chakankar111@gmail.com> | 2026-11-22 02:00:15 +0000 |
|---|---|---|
| committer | ismailchaka1 <chakankar111@gmail.com> | 2026-11-22 02:00:15 +0000 |
| commit | 9b70afedb85dcb4908171fc67ffaa25c8b3513b2 (patch) | |
| tree | 095cc759f36decd4b1b7eadedf982e610679e19d /runtime/src | |
| parent | c432cdce127ed2d22a99aa6ef57d91db4a10b5bb (diff) | |
Runtime: B4G4R4A4_UNORM textures (D3D-61)
CreateCommittedResource refused DXGI_FORMAT_B4G4R4A4_UNORM. It now maps
to VK_FORMAT_A4R4G4B4_UNORM_PACK16: DXGI names channels from the low bits
up and Vulkan from the high bits down, so both have B in bits 0-3 and A
in 12-15. Vulkan 1.3 requires sampling it. Copies use two-byte texels,
and the shader-resource view is a 4_4_4_4_UNORM T#, which the GFX10
table already had.
d3d12_descriptor_test uploads an 8x8 texture with a different nibble in
every channel of every texel, checks the footprint (two-byte rows), and
samples it through set 0: all 64 texels match, each nibble n read as
n * 17.
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/vulkan_replay.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/src/vulkan_replay.h b/runtime/src/vulkan_replay.h index 3a5db673e..34b924bc4 100644 --- a/runtime/src/vulkan_replay.h +++ b/runtime/src/vulkan_replay.h | |||
| @@ -395,6 +395,7 @@ inline BlockFormat block_format(VkFormat format, VkImageAspectFlags aspect) { | |||
| 395 | case VK_FORMAT_R8G8_SINT: | 395 | case VK_FORMAT_R8G8_SINT: |
| 396 | case VK_FORMAT_R16_SFLOAT: | 396 | case VK_FORMAT_R16_SFLOAT: |
| 397 | case VK_FORMAT_R16_UNORM: | 397 | case VK_FORMAT_R16_UNORM: |
| 398 | case VK_FORMAT_A4R4G4B4_UNORM_PACK16: | ||
| 398 | case VK_FORMAT_D16_UNORM: return {2, 1}; | 399 | case VK_FORMAT_D16_UNORM: return {2, 1}; |
| 399 | case VK_FORMAT_R8_UNORM: return {1, 1}; | 400 | case VK_FORMAT_R8_UNORM: return {1, 1}; |
| 400 | case VK_FORMAT_BC1_RGBA_UNORM_BLOCK: | 401 | case VK_FORMAT_BC1_RGBA_UNORM_BLOCK: |