From d87dd1dcfd0f13a6be1a2096d654f4d62044ad48 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 2 May 2023 20:31:01 -0700 Subject: 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 --- tools/gfx/vulkan/vk-shader-table.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/gfx/vulkan/vk-shader-table.cpp') 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 ShaderTableImpl::createDeviceBuffer( ResourceStateSet(ResourceState::General, ResourceState::CopyDestination); bufferDesc.type = IResource::Type::Buffer; bufferDesc.sizeInBytes = tableSize; - m_device->createBufferResource(bufferDesc, nullptr, bufferResource.writeRef()); + static_cast(m_device)->createBufferResourceImpl( + bufferDesc, + VK_BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR, + nullptr, + bufferResource.writeRef()); TransientResourceHeapImpl* transientHeapImpl = static_cast(transientHeap); -- cgit v1.2.3