From 164e530154cc4af465167ed88e743684424eaec6 Mon Sep 17 00:00:00 2001 From: rumblehhh <40687079+rumblehhh@users.noreply.github.com> Date: Tue, 14 Jun 2022 19:37:50 +0100 Subject: [PATCH] Add SHADER_BINDING_TABLE usage flags to sbt buffer (#57) --- src/Vulkan/RayTracing/ShaderBindingTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vulkan/RayTracing/ShaderBindingTable.cpp b/src/Vulkan/RayTracing/ShaderBindingTable.cpp index b4c35b44..0ef508d8 100644 --- a/src/Vulkan/RayTracing/ShaderBindingTable.cpp +++ b/src/Vulkan/RayTracing/ShaderBindingTable.cpp @@ -87,7 +87,7 @@ ShaderBindingTable::ShaderBindingTable( // Allocate buffer & memory. const auto& device = rayTracingProperties.Device(); - buffer_.reset(new class Buffer(device, sbtSize, VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT)); + buffer_.reset(new class Buffer(device, sbtSize, VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT | VK_BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR)); bufferMemory_.reset(new DeviceMemory(buffer_->AllocateMemory(VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT))); // Generate the table.