mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-03 12:33:58 +00:00
Change VK_Indirect to only use drawIndirectCount if it is available
This commit is contained in:
1 parent
27a5c73163
commit
b08db39817
1 file changed
+8
-1
@@ -113,7 +113,14 @@ void main()
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES,
|
||||
};
|
||||
|
||||
feats.drawIndirectCount = VK_TRUE;
|
||||
VkPhysicalDeviceVulkan12Features vk12avail = {
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES,
|
||||
};
|
||||
|
||||
getPhysFeatures2(&vk12avail);
|
||||
|
||||
if(vk12avail.drawIndirectCount)
|
||||
feats.drawIndirectCount = VK_TRUE;
|
||||
|
||||
devInfoNext = &feats;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user