diff options
| author | Tauwni <102470988+Tauwni@users.noreply.github.com> | 2026-11-26 12:19:12 +0100 |
|---|---|---|
| committer | Tauwni <102470988+Tauwni@users.noreply.github.com> | 2026-11-26 12:19:12 +0100 |
| commit | beffaa9a476ca1b3dfd9cfa55e39eafbb1f5eec6 (patch) | |
| tree | 32877805bf4eb46d9a89d5753db6b5a2b06dc845 /runtime/test/vk_sampler_test.cpp | |
| parent | f29ca7bacae9507f83e8c56abdb604bd4efb4cf1 (diff) | |
| parent | a73a57e1339be072baf5522351c8ec7f1482b56b (diff) | |
Merge main into fix/null-descriptor-generated-dir
Diffstat (limited to 'runtime/test/vk_sampler_test.cpp')
| -rw-r--r-- | runtime/test/vk_sampler_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/test/vk_sampler_test.cpp b/runtime/test/vk_sampler_test.cpp index 98206931b..a35806d8f 100644 --- a/runtime/test/vk_sampler_test.cpp +++ b/runtime/test/vk_sampler_test.cpp | |||
| @@ -265,9 +265,10 @@ int main(int argc, char** argv) { | |||
| 265 | VkBufferDeviceAddressInfo address_info{VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO}; | 265 | VkBufferDeviceAddressInfo address_info{VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO}; |
| 266 | address_info.buffer = heap; | 266 | address_info.buffer = heap; |
| 267 | const VkDeviceAddress heap_base = vkGetBufferDeviceAddress(dev, &address_info); | 267 | const VkDeviceAddress heap_base = vkGetBufferDeviceAddress(dev, &address_info); |
| 268 | // Descriptor hash table: the T# names image 1, the S# sampler 1. Index 0 of each is a magenta fallback. | 268 | // Descriptor hash table: the T# names image 1, the S# sampler 1. Index 0 of each is a magenta fallback. The |
| 269 | // module is tagged (build.py), so the T# entry names the array its index is bound in: a sampled 2D image. | ||
| 269 | leonida::DescriptorTable table(16); | 270 | leonida::DescriptorTable table(16); |
| 270 | table.insert(tsharp.data(), 1); | 271 | table.insert(tsharp.data(), 1, leonida::kind_sampled_bit(0)); |
| 271 | table.insert(leonida::make_ssharp_key(ssharp.data()).data(), 1); | 272 | table.insert(leonida::make_ssharp_key(ssharp.data()).data(), 1); |
| 272 | const auto table_words = table.build_gpu_buffer(true); | 273 | const auto table_words = table.build_gpu_buffer(true); |
| 273 | VkBuffer table_buffer; | 274 | VkBuffer table_buffer; |