@@ -33,6 +33,7 @@ DeviceAddressCommands::DeviceAddressCommands()
3333 // VK_KHR_device_address_commands. We also request the KHR extension
3434 // name so older loaders find it correctly.
3535 add_device_extension (VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME , /* optional=*/ true );
36+ add_device_extension (VK_KHR_DRAW_INDIRECT_COUNT_EXTENSION_NAME );
3637}
3738
3839DeviceAddressCommands::~DeviceAddressCommands ()
@@ -89,7 +90,7 @@ void DeviceAddressCommands::request_gpu_features(vkb::core::PhysicalDeviceC &gpu
8990 // because we also request drawIndirectCount from the same struct. The spec
9091 // forbids having both VkPhysicalDeviceVulkan12Features and the standalone
9192 // VkPhysicalDeviceBufferDeviceAddressFeatures in the pNext chain at once.
92- REQUEST_REQUIRED_FEATURE (gpu, VkPhysicalDeviceVulkan12Features , bufferDeviceAddress);
93+ REQUEST_REQUIRED_FEATURE (gpu, VkPhysicalDeviceBufferDeviceAddressFeatures , bufferDeviceAddress);
9394
9495 // The new extension feature that unlocks vkCmdBindIndexBuffer3KHR etc.
9596 REQUEST_REQUIRED_FEATURE (gpu,
@@ -99,8 +100,6 @@ void DeviceAddressCommands::request_gpu_features(vkb::core::PhysicalDeviceC &gpu
99100 // vkCmdPipelineBarrier2 (used for VkMemoryRangeBarrierKHR) requires this.
100101 REQUEST_REQUIRED_FEATURE (gpu, VkPhysicalDeviceSynchronization2FeaturesKHR, synchronization2);
101102
102- // vkCmdDrawIndexedIndirectCount2KHR requires the count variant of indirect draw.
103- REQUEST_REQUIRED_FEATURE (gpu, VkPhysicalDeviceVulkan12Features, drawIndirectCount);
104103
105104 // The compute shader sets firstInstance to the object index so the vertex
106105 // shader can index the transform array. Non-zero firstInstance requires
0 commit comments