Skip to content

Commit

Permalink
Add SHADER_BINDING_TABLE usage flags to sbt buffer (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblehhh committed Jun 14, 2022
1 parent b358b60 commit 164e530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vulkan/RayTracing/ShaderBindingTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 164e530

Please sign in to comment.