From 0f2d11dc994c6323b4bfb955b522f3123e731fe0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 23 Jun 2021 11:33:30 -0700 Subject: [gfx] Add `IBufferResource::getDeviceAddress()`. (#1892) --- tools/gfx/vulkan/vk-api.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/gfx/vulkan/vk-api.cpp') diff --git a/tools/gfx/vulkan/vk-api.cpp b/tools/gfx/vulkan/vk-api.cpp index 9a4ab130d..7e1a9bae2 100644 --- a/tools/gfx/vulkan/vk-api.cpp +++ b/tools/gfx/vulkan/vk-api.cpp @@ -87,6 +87,11 @@ Slang::Result VulkanApi::initDeviceProcs(VkDevice device) return SLANG_FAIL; } + if (!vkGetBufferDeviceAddressKHR && vkGetBufferDeviceAddressEXT) + vkGetBufferDeviceAddressKHR = vkGetBufferDeviceAddressEXT; + if (!vkGetBufferDeviceAddress && vkGetBufferDeviceAddressKHR) + vkGetBufferDeviceAddress = vkGetBufferDeviceAddressKHR; + m_device = device; return SLANG_OK; } -- cgit v1.2.3