diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-21 18:11:55 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-21 18:28:13 -0500 |
| commit | 438e144270cfc59fc6f3bb9b6f81a535c7070334 (patch) | |
| tree | 9e09c03a8d845da1ae262ef74c9c50cc456ed4f5 /runtime/test/loader_test.cpp | |
| parent | bc14565c458489f3480a07208989096467641933 (diff) | |
Runtime: build with MSVC; the descriptor test shows a missed sampler lookup
Two findings from the review of #328, on MSVC 19.44 and an RTX 5080.
- bind_image did not compile with MSVC (C2397): the view's aspect, picked
between two VkImageAspectFlagBits values, went into a VkImageAspectFlags
field in braces. MSVC's enums are ints, so that is a narrowing
conversion there; GCC and clang give the enum an unsigned type and accept
it. The value is cast now.
- d3d12_descriptor_test passed with the sampler index forced to 0, because
its point, clamping sampler and the fallback sampler read the same
texels. The test's sampler now wraps in U and the shader samples one
tile to the right: the right sampler gives the texture, the fallback its
right edge. With the index forced to 0 the test fails (texel 0 reads
224, 0, 135, 255 instead of 0, 0, 128, 255).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions