diff options
| author | Aslan2142 <jan.trencansky@protonmail.com> | 2026-11-26 01:01:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-26 01:01:15 +0100 |
| commit | c50ed94b35b37b697ab9c5fd176f3738480b4db5 (patch) | |
| tree | fbc257236021f3e4e41b3a7e7bf062aac898a1bf /runtime/test/vk_sandbox.cpp | |
| parent | 33bd07cf86bb42236635c27341359b3fe841d1d5 (diff) | |
| parent | fc71534883424112a7ea08fefe5b820fc4ee58aa (diff) | |
Merge pull request #2098 from Moriz82/pr/upstream-1125
Improve post-load GPU memory and pipeline handling (RT-POST-LOAD-GPU-MEMORY)
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) { |