upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_texture_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/test/vk_texture_test.cpp')
-rw-r--r--runtime/test/vk_texture_test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/test/vk_texture_test.cpp b/runtime/test/vk_texture_test.cpp
index 3dafcaef6..97e93cb04 100644
--- a/runtime/test/vk_texture_test.cpp
+++ b/runtime/test/vk_texture_test.cpp
@@ -327,7 +327,10 @@ int main(int argc, char** argv) {
327 leonida::DescriptorTable desc_table(16); 327 leonida::DescriptorTable desc_table(16);
328 // The heap already holds the original key. Change only the registered key for the miss control. 328 // The heap already holds the original key. Change only the registered key for the miss control.
329 if (fetch_miss) tsharp[7] ^= 1; 329 if (fetch_miss) tsharp[7] ^= 1;
330 desc_table.insert(tsharp, 1); 330 // Index 1 is bound in both sampled arrays the shaders read: images[1] (binding 0, the 2D view) and the 2D-array
331 // images[1] (binding 3, the view of the two cubes). A tagged module reads its instruction's array only when the
332 // entry's kind names it, so the kind carries both: with one bit, a 2D_ARRAY or cube op got the 1x1 fallback.
333 desc_table.insert(tsharp, 1, leonida::kind_sampled_bit(0) | leonida::kind_sampled_bit(1));
331 desc_table.insert(ssharp, 1); 334 desc_table.insert(ssharp, 1);
332 const auto table = desc_table.build_gpu_buffer(true); 335 const auto table = desc_table.build_gpu_buffer(true);
333 VkBuffer tb; VkDeviceMemory tbm; void* tbp; 336 VkBuffer tb; VkDeviceMemory tbm; void* tbp;