upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-21 18:11:55 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-21 18:28:13 -0500
commit438e144270cfc59fc6f3bb9b6f81a535c7070334 (patch)
tree9e09c03a8d845da1ae262ef74c9c50cc456ed4f5 /runtime/test/loader_test.cpp
parentbc14565c458489f3480a07208989096467641933 (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