diff options
Diffstat (limited to 'tools/gfx/vulkan/vk-api.cpp')
| -rw-r--r-- | tools/gfx/vulkan/vk-api.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-api.cpp b/tools/gfx/vulkan/vk-api.cpp index dbf32345f..09b8e92f5 100644 --- a/tools/gfx/vulkan/vk-api.cpp +++ b/tools/gfx/vulkan/vk-api.cpp @@ -86,6 +86,17 @@ Slang::Result VulkanApi::initPhysicalDevice(VkPhysicalDevice physicalDevice) vkGetPhysicalDeviceFeatures(m_physicalDevice, &m_deviceFeatures); vkGetPhysicalDeviceMemoryProperties(m_physicalDevice, &m_deviceMemoryProperties); + if (vkGetPhysicalDeviceCooperativeVectorPropertiesNV) + { + uint32_t nProps = 0; + vkGetPhysicalDeviceCooperativeVectorPropertiesNV(m_physicalDevice, &nProps, nullptr); + m_cooperativeVectorProperties.setCount(nProps); + vkGetPhysicalDeviceCooperativeVectorPropertiesNV( + m_physicalDevice, + &nProps, + m_cooperativeVectorProperties.getBuffer()); + } + return SLANG_OK; } |
