vkCmdDispatchGraphIndirectCountAMDX(3)

Name

vkCmdDispatchGraphIndirectCountAMDX - Dispatch an execution graph with all parameters read on the device

C Specification

To record an execution graph dispatch with all parameters read on device, call:

// Provided by VK_AMDX_shader_enqueue
void vkCmdDispatchGraphIndirectCountAMDX(
    VkCommandBuffer                             commandBuffer,
    VkDeviceAddress                             scratch,
    VkDeviceSize                                scratchSize,
    VkDeviceAddress                             countInfo);

Parameters

  • commandBuffer is the command buffer into which the command will be recorded.

  • scratch is the address of scratch memory to be used.

  • scratchSize is a range in bytes of scratch memory to be used.

  • countInfo is a device address of a VkDispatchGraphCountInfoAMDX structure defining the nodes which will be initially executed.

Description

When this command is executed, the nodes specified in countInfo are executed. Nodes executed as part of this command are not implicitly synchronized in any way against each other once they are dispatched.

For this command, all pointers in substructures are treated as device pointers and read during device execution of this command. The allocation and contents of these pointers only needs to be valid during device execution. All of these addresses will be read in the VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT pipeline stage with the VK_ACCESS_2_SHADER_STORAGE_READ_BIT access flag.

Execution of this command may modify any memory locations in the range [scratch,scratch + scratchSize). Accesses to this memory range are performed in the VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT pipeline stage with the VK_ACCESS_2_SHADER_STORAGE_READ_BIT and VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT access flags.

Valid Usage
Valid Usage (Implicit)
  • VUID-vkCmdDispatchGraphIndirectCountAMDX-commandBuffer-parameter
    commandBuffer must be a valid VkCommandBuffer handle

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-scratch-parameter
    scratch must be a valid VkDeviceAddress value

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-countInfo-parameter
    countInfo must be a valid VkDeviceAddress value

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-commandBuffer-recording
    commandBuffer must be in the recording state

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-commandBuffer-cmdpool
    The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_COMPUTE_BIT, or VK_QUEUE_GRAPHICS_BIT operations

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-suspended
    This command must not be called between suspended render pass instances

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-videocoding
    This command must only be called outside of a video coding scope

  • VUID-vkCmdDispatchGraphIndirectCountAMDX-bufferlevel
    commandBuffer must be a primary VkCommandBuffer

Host Synchronization
  • Host access to the VkCommandPool that commandBuffer was allocated from must be externally synchronized

Command Properties
Command Buffer Levels Render Pass Scope Video Coding Scope Supported Queue Types Command Type

Primary

Both

Outside

VK_QUEUE_COMPUTE_BIT
VK_QUEUE_GRAPHICS_BIT

Action

Conditional Rendering

vkCmdDispatchGraphIndirectCountAMDX is affected by conditional rendering

See Also

VK_AMDX_shader_enqueue, VkCommandBuffer, VkDeviceAddress, VkDeviceSize

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.