summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/vk-shader-table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/vk-shader-table.cpp')
-rw-r--r--tools/gfx/vulkan/vk-shader-table.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gfx/vulkan/vk-shader-table.cpp b/tools/gfx/vulkan/vk-shader-table.cpp
index f40331432..0b6488465 100644
--- a/tools/gfx/vulkan/vk-shader-table.cpp
+++ b/tools/gfx/vulkan/vk-shader-table.cpp
@@ -39,7 +39,11 @@ RefPtr<BufferResource> ShaderTableImpl::createDeviceBuffer(
ResourceStateSet(ResourceState::General, ResourceState::CopyDestination);
bufferDesc.type = IResource::Type::Buffer;
bufferDesc.sizeInBytes = tableSize;
- m_device->createBufferResource(bufferDesc, nullptr, bufferResource.writeRef());
+ static_cast<vk::DeviceImpl*>(m_device)->createBufferResourceImpl(
+ bufferDesc,
+ VK_BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR,
+ nullptr,
+ bufferResource.writeRef());
TransientResourceHeapImpl* transientHeapImpl =
static_cast<TransientResourceHeapImpl*>(transientHeap);