upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_sampler_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/test/vk_sampler_test.cpp')
-rw-r--r--runtime/test/vk_sampler_test.cpp5
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;