diff options
Diffstat (limited to 'runtime/test/vk_sandbox.cpp')
| -rw-r--r-- | runtime/test/vk_sandbox.cpp | 3 |
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) { |