C Specification

VkDrawIndirectCount2InfoKHR is defined as:

// Provided by VK_KHR_device_address_commands
typedef struct VkDrawIndirectCount2InfoKHR {
    VkStructureType                   sType;
    const void*                       pNext;
    VkStridedDeviceAddressRangeKHR    addressRange;
    VkAddressCommandFlagsKHR          addressFlags;
    VkDeviceAddressRangeKHR           countAddressRange;
    VkAddressCommandFlagsKHR          countAddressFlags;
    uint32_t                          maxDrawCount;
} VkDrawIndirectCount2InfoKHR;

Members

  • sType is a VkStructureType value identifying this structure.

  • pNext is NULL or a pointer to a structure extending this structure.

  • addressRange is the VkStridedDeviceAddressRangeKHR containing draw parameters.

  • addressFlags is a VkAddressCommandFlagsKHR value defining the flags for the address range.

  • countAddressRange is the VkDeviceAddressRangeKHR containing the draw count.

  • countAddressFlags is a VkAddressCommandFlagsKHR value defining the flags for the count address range.

  • maxDrawCount 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 countAddressRange and maxDrawCount.

Description

Valid Usage
Valid Usage (Implicit)
  • VUID-VkDrawIndirectCount2InfoKHR-sType-sType
    sType must be VK_STRUCTURE_TYPE_DRAW_INDIRECT_COUNT_2_INFO_KHR

  • VUID-VkDrawIndirectCount2InfoKHR-pNext-pNext
    pNext must be NULL

  • VUID-VkDrawIndirectCount2InfoKHR-addressFlags-parameter
    If addressFlags is not 0, addressFlags must be a valid combination of VkAddressCommandFlagBitsKHR values

  • VUID-VkDrawIndirectCount2InfoKHR-countAddressFlags-parameter
    If countAddressFlags is not 0, countAddressFlags must be a valid combination of VkAddressCommandFlagBitsKHR values

See Also

Document Notes

For more information, see the Vulkan Specification.

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0