summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/vk-shader-table.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-02 20:31:01 -0700
committerGitHub <noreply@github.com>2023-05-02 20:31:01 -0700
commitd87dd1dcfd0f13a6be1a2096d654f4d62044ad48 (patch)
treede66c29d7e87e010d0c827a735fd1ef3accac158 /tools/gfx/vulkan/vk-shader-table.cpp
parentd52376a65f37fcbbb67428b917fd3819436b6dfb (diff)
gfx: fix vulkan validation errors. (#2861)
* Fix VK validation errors when using vk1.2 features. * Fix vulkan validation errors. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
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);