Function Prototype

vkCmdBeginPerTileExecutionQCOM

Begin per-tile execution mode
primary / secondary
inside
graphics / compute
state

To enable the per-tile execution model, call:

void vkCmdBeginPerTileExecutionQCOM(
    VkCommandBuffer commandBuffer,
    const VkPerTileBeginInfoQCOM* pPerTileBeginInfo);
  • commandBuffer is the command buffer in which to record the command.
  • pPerTileBeginInfo is a pointer to a VkPerTileBeginInfoQCOM structure containing information about how the per-tile execution model is started.

When per-tile execution model is enabled, recorded vkCmdDraw* or vkCmdDispatch* commands are invoked per tile. That is, the recorded draw or dispatch is invoked exactly once for each covered tile. The set of covered tiles for a given render pass instance consists of the set of render pass tiles, which can be queried with VK_QCOM_tile_properties, that are completely or partially covered by the renderArea for the render pass instance. The draw or dispatch commands may be invoked for uncovered tiles.

Each per-tile command invocation is associated with a single tile, the active tile. These per-tile invocations are not specified to execute in any particular order, but the size and offset of the active tile is available via shader built-ins.

When per-tile execution model is enabled, the following restrictions apply:

Valid Usage (Implicit)

VUID-vkCmdBeginPerTileExecutionQCOM-pPerTileBeginInfo-parameter

pPerTileBeginInfo must be a valid pointer to a valid VkPerTileBeginInfoQCOM structure

VUID-vkCmdBeginPerTileExecutionQCOM-commandBuffer-cmdpool

The VkCommandPool that commandBuffer was allocated from must support graphics, or compute operations

VUID-vkCmdBeginPerTileExecutionQCOM-renderpass

This command must only be called inside of a render pass instance

VUID-vkCmdBeginPerTileExecutionQCOM-videocoding

This command must only be called outside of a video coding scope

Host Synchronization

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