cmdWriteBufferMarkerAMD :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.-> PipelineStageFlagBitspipelineStageis a PipelineStageFlagBits value specifying the pipeline stage whose completion triggers the marker write.->"dstBuffer"
::: BufferdstBufferis the buffer where the marker will be written to.->"dstOffset"
::: DeviceSizedstOffsetis the byte offset into the buffer where the marker will be written to.->"marker"
::: Word32markeris the 32-bit value of the marker.-> io ()
vkCmdWriteBufferMarkerAMD - Execute a pipelined write of a marker value into a buffer
Description
When cmdWriteBufferMarkerAMD is submitted to a queue, it defines an execution dependency between prior operations and writing the marker value, as well as a memory dependency from earlier buffer marker write commands.
The first
synchronization scope
includes operations performed by operations that occur earlier in
submission order
in the pipeline stage identified by pipelineStage. It additionally
includes other
buffer marker write commands
that occur earlier in
submission order
that specified either the same pipelineStage or a stage that is
logically earlier.
The second synchronization scope includes only the buffer marker write.
The first access scope includes only accesses performed by other buffer marker write commands.
The second access scope is empty.
The access scope for buffer marker writes falls under the
ACCESS_TRANSFER_WRITE_BIT flag, and
is performed by either pipelineStage or
PIPELINE_STAGE_TRANSFER_BIT.
Synchronization commands
should specify this access flag and both pipeline stages when defining
dependencies with this command.
Similar to cmdWriteTimestamp, if an implementation is unable to write a marker at any specific pipeline stage, it may instead do so at any logically later stage.
Implementations may only support a limited number of pipelined marker write operations in flight at a given time, thus excessive number of marker write operations may degrade command execution performance.
Valid Usage
pipelineStagemust be a valid stage for the queue family that was used to create the command pool thatcommandBufferwas allocated from
If the geometryShader feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_GEOMETRY_SHADER_BITIf the tessellationShader feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT or PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BITIf the conditionalRendering feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_CONDITIONAL_RENDERING_BIT_EXTIf the fragmentDensityMap feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXTIf the transformFeedback feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXTIf the meshShader feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_MESH_SHADER_BIT_EXTIf the taskShader feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_TASK_SHADER_BIT_EXTIf neither of the shadingRateImage or the attachmentFragmentShadingRate features are enabled,
pipelineStagemust not be PIPELINE_STAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHRIf the synchronization2 feature is not enabled,
pipelineStagemust not be PIPELINE_STAGE_NONEIf neither of the VK_NV_ray_tracing extension or the rayTracingPipeline feature are enabled,
pipelineStagemust not be PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHRdstOffsetmust be less than or equal to the size ofdstBufferminus4dstBuffermust have been created with the BUFFER_USAGE_TRANSFER_DST_BIT usage flag setIf
dstBufferis non-sparse then it must be bound completely and contiguously to a single DeviceMemory objectdstOffsetmust be a multiple of4
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
If
pipelineStageis not0,pipelineStagemust be a valid PipelineStageFlagBits valuedstBuffermust be a valid Buffer handlecommandBuffermust be in the recording stateThe CommandPool that
commandBufferwas allocated from must support QUEUE_COMPUTE_BIT, QUEUE_GRAPHICS_BIT, or QUEUE_TRANSFER_BIT operationsThis command must not be called between suspended render pass instances
This command must only be called outside of a video coding scope
Both of
commandBuffer, anddstBuffermust have been created, allocated, or retrieved from the same Device
Host Synchronization
Host access to
commandBuffermust be externally synchronized
Host access to the CommandPool that
commandBufferwas allocated from must be externally synchronized
Command Properties
'
Primary Secondary | Both | Outside | VK_QUEUE_COMPUTE_BIT VK_QUEUE_GRAPHICS_BIT VK_QUEUE_TRANSFER_BIT | Action |
Conditional Rendering
vkCmdWriteBufferMarkerAMD is not affected by conditional rendering
See Also
VK_AMD_buffer_marker, Buffer, CommandBuffer, DeviceSize, PipelineStageFlagBits