| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_AMD_buffer_marker
- pattern VK_AMD_BUFFER_MARKER_SPEC_VERSION :: Integral a => a
- pattern VK_AMD_BUFFER_MARKER_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCmdWriteBufferMarkerAMD :: ("commandBuffer" ::: VkCommandBuffer) -> ("pipelineStage" ::: VkPipelineStageFlagBits) -> ("dstBuffer" ::: VkBuffer) -> ("dstOffset" ::: VkDeviceSize) -> ("marker" ::: Word32) -> IO ()
Documentation
pattern VK_AMD_BUFFER_MARKER_SPEC_VERSION :: Integral a => a Source #
pattern VK_AMD_BUFFER_MARKER_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCmdWriteBufferMarkerAMD :: ("commandBuffer" ::: VkCommandBuffer) -> ("pipelineStage" ::: VkPipelineStageFlagBits) -> ("dstBuffer" ::: VkBuffer) -> ("dstOffset" ::: VkDeviceSize) -> ("marker" ::: Word32) -> IO () Source #
vkCmdWriteBufferMarkerAMD - Execute a pipelined write of a marker value into a buffer
Parameters
commandBufferis the command buffer into which the command will be recorded.
pipelineStageis one of theVkPipelineStageFlagBitsvalues, specifying the pipeline stage whose completion triggers the marker write.dstBufferis the buffer where the marker will be written to.dstOffsetis the byte offset into the buffer where the marker will be written to.markeris the 32-bit value of the marker.
Description
The command will write the 32-bit marker value into the buffer only
after all preceding commands have finished executing up to at least the
specified pipeline stage. This includes the completion of other
preceding vkCmdWriteBufferMarkerAMD commands so long as their
specified pipeline stages occur either at the same time or earlier than
this command’s specified pipelineStage.
While consecutive buffer marker writes with the same pipelineStage
parameter are implicitly complete in submission order, memory and
execution dependencies between buffer marker writes and other operations
must still be explicitly ordered using synchronization commands. The
access scope for buffer marker writes falls under the
VK_ACCESS_TRANSFER_WRITE_BIT, and the pipeline stages for identifying
the synchronization scope must include both pipelineStage and
VK_PIPELINE_STAGE_TRANSFER_BIT.
Note
Similar to vkCmdWriteTimestamp, if an implementation is unable to
write a marker at any specific pipeline stage, it may instead do so at
any logically later stage.
Note
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
dstOffsetmust be less than or equal to the size ofdstBufferminus4.
dstBuffermust have been created withVK_BUFFER_USAGE_TRANSFER_DST_BITusage flag- If
dstBufferis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject dstOffsetmust be a multiple of4
Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandle
pipelineStagemust be a validVkPipelineStageFlagBitsvaluedstBuffermust be a validVkBufferhandlecommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support transfer, graphics, or compute operations - Both of
commandBuffer, anddstBuffermust have been created, allocated, or retrieved from the sameVkDevice
Host Synchronization
- Host access to
commandBuffermust be externally synchronized
- Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Command Properties
+-----------------+-----------------+-----------------+-----------------+ | <#VkCommandBuff | <#vkCmdBeginRen | <#VkQueueFlagBi | <#synchronizati | | erLevel Command | derPass Render | ts Supported Qu | on-pipeline-sta | | Buffer Levels> | Pass Scope> | eue Types> | ges-types Pipel | | | | | ine Type> | +=================+=================+=================+=================+ | Primary | Both | Transfer | Transfer | | Secondary | | Graphics | | | | | Compute | | +-----------------+-----------------+-----------------+-----------------+
See Also
VkBuffer,
VkCommandBuffer, VkDeviceSize,
VkPipelineStageFlagBits