VK_AMD_draw_indirect_count extension. This extension allows an application to source the number of draws for indirect drawing calls from a buffer.
Applications might want to do culling on the GPU via a compute shader prior to drawing. This enables the application to generate an arbitrary number of drawing commands and execute them without host intervention.
All functionality in this extension is included in core Vulkan 1.2, with the KHR suffix omitted. However, if Vulkan 1.2 is supported and this extension is not, the entry points CmdDrawIndirectCount and CmdDrawIndexedIndirectCount are optional. The original type, enum and command names are still available as aliases of the core functionality.
VK_KHR_draw_indirect_count| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_KHR_DRAW_INDIRECT_COUNT_EXTENSION_NAME
The extension name. |
| public static final int | VK_KHR_DRAW_INDIRECT_COUNT_SPEC_VERSION
The extension specification version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | vkCmdDrawIndexedIndirectCountKHR(VkCommandBuffer
the command buffer into which the command is recorded. commandBuffer, long the buffer containing draw parameters. buffer, long the byte offset into offset, long buffer where parameters begin.the buffer containing the draw count. countBuffer, long the byte offset into countBufferOffset, int countBuffer where the draw count begins.specifies the maximum number of draws that will be executed. The actual number of executed draw calls is the minimum of the count specified in maxDrawCount, int countBuffer and maxDrawCount.the byte stride between successive sets of draw parameters. stride) |
| public static void | vkCmdDrawIndirectCountKHR(VkCommandBuffer
the command buffer into which the command is recorded. commandBuffer, long the buffer containing draw parameters. buffer, long the byte offset into offset, long buffer where parameters begin.the buffer containing the draw count. countBuffer, long the byte offset into countBufferOffset, int countBuffer where the draw count begins.specifies the maximum number of draws that will be executed. The actual number of executed draw calls is the minimum of the count specified in maxDrawCount, int countBuffer and maxDrawCount.the byte stride between successive sets of draw parameters. stride)See |
| VK_KHR_DRAW_INDIRECT_COUNT_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_KHR_DRAW_INDIRECT_COUNT_EXTENSION_NAME The extension name. | |
| VK_KHR_DRAW_INDIRECT_COUNT_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_KHR_DRAW_INDIRECT_COUNT_SPEC_VERSION The extension specification version. | |
| KHRDrawIndirectCount | back to summary |
|---|---|
| protected KHRDrawIndirectCount() | |
| vkCmdDrawIndexedIndirectCountKHR | back to summary |
|---|---|
| public static void vkCmdDrawIndexedIndirectCountKHR(VkCommandBuffer commandBuffer, long buffer, long offset, long countBuffer, long countBufferOffset, int maxDrawCount, int stride) See
| |
| vkCmdDrawIndirectCountKHR | back to summary |
|---|---|
| public static void vkCmdDrawIndirectCountKHR(VkCommandBuffer commandBuffer, long buffer, long offset, long countBuffer, long countBufferOffset, int maxDrawCount, int stride) See
| |