diff options
| author | pietr <papai.pits@gmail.com> | 2026-11-22 12:34:45 -0300 |
|---|---|---|
| committer | pietr <papai.pits@gmail.com> | 2026-11-22 12:34:45 -0300 |
| commit | 52a25698d47d3fe3cab5e8c1534e4803cb6b2745 (patch) | |
| tree | 09881829eeb11f94a64045a800148d6e426f7a78 /runtime/src/main.cpp | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
d3d12_state_map_test: cover block_format (copy block sizes)
block_format in vulkan_replay.h -- the bytes-per-texel/per-4x4-block table that
copies use to lay a subresource out in a buffer -- had no direct test, though the
mapping functions and the subresource decoder next to it are covered here. A
mistyped byte count or a missed 4x4 block there would silently corrupt a copy
rather than fail.
Adds a block_format section pinning every VkFormat the DXGI format map can
produce (19 uncompressed and 14 block-compressed) to its spec-derived
(bytes, block), plus the depth- and stencil-aspect behaviour (the stencil plane
is one byte whatever the format value is) and the {0, 1} sentinel for a format
copies cannot lay out yet. No production code changes.
Built and ran on Windows (MSVC /W4 /permissive-, Windows SDK 10.0.26100, Vulkan
headers 1.4.363): ctest -R d3d12_state_map passes, no warnings. Header-only, no
GPU, no game files.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions