upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_sandbox.cpp
diff options
context:
space:
mode:
authorTauwni <102470988+Tauwni@users.noreply.github.com>2026-11-26 12:19:12 +0100
committerTauwni <102470988+Tauwni@users.noreply.github.com>2026-11-26 12:19:12 +0100
commitbeffaa9a476ca1b3dfd9cfa55e39eafbb1f5eec6 (patch)
tree32877805bf4eb46d9a89d5753db6b5a2b06dc845 /runtime/test/vk_sandbox.cpp
parentf29ca7bacae9507f83e8c56abdb604bd4efb4cf1 (diff)
parenta73a57e1339be072baf5522351c8ec7f1482b56b (diff)
Merge main into fix/null-descriptor-generated-dir
Diffstat (limited to 'runtime/test/vk_sandbox.cpp')
-rw-r--r--runtime/test/vk_sandbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/test/vk_sandbox.cpp b/runtime/test/vk_sandbox.cpp
index 7ae9e8db6..11718190d 100644
--- a/runtime/test/vk_sandbox.cpp
+++ b/runtime/test/vk_sandbox.cpp
@@ -395,7 +395,8 @@ int main(int argc, char** argv) {
395 }; 395 };
396 const uint32_t nimg = uint32_t(scene.textures.size()) + 1; // image 0: 1x1 white for untextured draws 396 const uint32_t nimg = uint32_t(scene.textures.size()) + 1; // image 0: 1x1 white for untextured draws
397 leonida::DescriptorTable table(2 * (nimg + 2)); 397 leonida::DescriptorTable table(2 * (nimg + 2));
398 for (uint32_t i = 0; i < nimg; ++i) table.insert(tsharp(i).data(), i); 398 // The module is tagged (build.py), so each T# entry names the array its index is bound in: a sampled 2D image.
399 for (uint32_t i = 0; i < nimg; ++i) table.insert(tsharp(i).data(), i, leonida::kind_sampled_bit(0));
399 uint32_t ssharp[8] = {1024, 12582912, 418381824, 0, 0xFFFFFFFFu, 0xFFFFFFFFu, 0xFFFFFFFFu, 0xFFFFFFFFu}; // the PS's literal S# 400 uint32_t ssharp[8] = {1024, 12582912, 418381824, 0, 0xFFFFFFFFu, 0xFFFFFFFFu, 0xFFFFFFFFu, 0xFFFFFFFFu}; // the PS's literal S#
400 table.insert(ssharp, 0); 401 table.insert(ssharp, 0);
401 for (uint32_t d = 0; d < ndraw; ++d) { 402 for (uint32_t d = 0; d < ndraw; ++d) {