diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-01-30 13:19:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 13:19:13 -0800 |
| commit | fb052bf4674b55933e6dd9f991c99000c049d216 (patch) | |
| tree | cff94fc924a63fe80ae53cc3a0c15039c171bf7a /tools/gfx/vulkan/vk-api.cpp | |
| parent | 7a8131d312d84f71b1c8776ad83713dea52301f4 (diff) | |
Support cooperative vector including Vulkan-Header (#6228)
* Support cooperative vector including Vulkan-Header
Adding a Slang support for cooperative vector with vulkan-header update.
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; } |
