Skip to content

Commit d65ccf6

Browse files
committed
Fix for VUID error.
1 parent 6fd62e9 commit d65ccf6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

samples/extensions/device_address_commands/device_address_commands.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3839
DeviceAddressCommands::~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

Comments
 (0)