Class AMDBufferMarker
VkBuffer object.
The primary purpose of these markers is to facilitate the development of debugging tools for tracking which pipelined command contributed to device loss.
Examples
None.
- Name String
VK_AMD_buffer_marker- Extension Type
- Device extension
- Registered Extension Number
- 180
- Revision
- 1
- API Interactions
- Interacts with VK_VERSION_1_3
- Interacts with VK_KHR_synchronization2
- Special Use
- Contact
- Daniel Rakos drakos-amd
Other Extension Metadata
- Last Modified Date
- 2018-01-26
- IP Status
- No known IP claims.
- Contributors
- Matthaeus G. Chajdas, AMD
- Jaakko Konttinen, AMD
- Daniel Rakos, AMD
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvkCmdWriteBufferMarker2AMD(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long stage, long dstBuffer, long dstOffset, int marker) Execute a pipelined write of a marker value into a buffer.static voidvkCmdWriteBufferMarkerAMD(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, int pipelineStage, long dstBuffer, long dstOffset, int marker) Execute a pipelined write of a marker value into a buffer.
-
Field Details
-
VK_AMD_BUFFER_MARKER_SPEC_VERSION
public static final int VK_AMD_BUFFER_MARKER_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_AMD_BUFFER_MARKER_EXTENSION_NAME
The extension name.- See Also:
-
-
Method Details
-
vkCmdWriteBufferMarkerAMD
public static void vkCmdWriteBufferMarkerAMD(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, int pipelineStage, long dstBuffer, long dstOffset, int marker) Execute a pipelined write of a marker value into a buffer.C Specification
To write a 32-bit marker value into a buffer as a pipelined operation, call:
void vkCmdWriteBufferMarkerAMD( VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t 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
vkCmdWriteBufferMarkerAMDcommands so long as their specified pipeline stages occur either at the same time or earlier than this command’s specifiedpipelineStage.While consecutive buffer marker writes with the same
pipelineStageparameter 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 theACCESS_TRANSFER_WRITE_BIT, and the pipeline stages for identifying the synchronization scope must include bothpipelineStageandPIPELINE_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
pipelineStagemust be a valid stage for the queue family that was used to create the command pool thatcommandBufferwas allocated from- If the
geometryShaderfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_GEOMETRY_SHADER_BIT - If the
tessellationShaderfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BITorPIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT - If the
conditionalRenderingfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_CONDITIONAL_RENDERING_BIT_EXT - If the
fragmentDensityMapfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXT - If the
transformFeedbackfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT - If the
meshShaderfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_MESH_SHADER_BIT_EXT - If the
taskShaderfeature is not enabled,pipelineStagemust not bePIPELINE_STAGE_TASK_SHADER_BIT_EXT - If neither of the
shadingRateImageor theattachmentFragmentShadingRatefeatures are enabled,pipelineStagemust not bePIPELINE_STAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR - If the
synchronization2feature is not enabled,pipelineStagemust not bePIPELINE_STAGE_NONE - If neither of the
VK_NV_ray_tracingextension or therayTracingPipelinefeature are enabled,pipelineStagemust not bePIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR dstOffsetmust be less than or equal to the size ofdstBufferminus 4dstBuffermust have been created withBUFFER_USAGE_TRANSFER_DST_BITusage flag- If
dstBufferis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject dstOffsetmust be a multiple of 4
Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandle- If
pipelineStageis not 0,pipelineStagemust be a validVkPipelineStageFlagBitsvalue dstBuffermust be a validVkBufferhandlecommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support transfer, graphics, or compute operations - This command must only be called outside of a video coding scope
- 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
Command Buffer Levels Render Pass Scope Video Coding Scope Supported Queue Types Command Type Primary Secondary Both Outside Transfer Graphics Compute Action - Parameters:
commandBuffer- the command buffer into which the command will be recorded.pipelineStage- aVkPipelineStageFlagBitsvalue specifying the pipeline stage whose completion triggers the marker write.dstBuffer- the buffer where the marker will be written to.dstOffset- the byte offset into the buffer where the marker will be written to.marker- the 32-bit value of the marker.
-
vkCmdWriteBufferMarker2AMD
public static void vkCmdWriteBufferMarker2AMD(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long stage, long dstBuffer, long dstOffset, int marker) Execute a pipelined write of a marker value into a buffer.C Specification
To write a 32-bit marker value into a buffer as a pipelined operation, call:
void vkCmdWriteBufferMarker2AMD( VkCommandBuffer commandBuffer, VkPipelineStageFlags2 stage, VkBuffer dstBuffer, VkDeviceSize dstOffset, uint32_t 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
vkCmdWriteBufferMarker2AMDcommands so long as their specified pipeline stages occur either at the same time or earlier than this command’s specifiedstage.While consecutive buffer marker writes with the same
stageparameter 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 theACCESS_TRANSFER_WRITE_BIT, and the pipeline stages for identifying the synchronization scope must include bothstageandPIPELINE_STAGE_TRANSFER_BIT.Note
Similar to
vkCmdWriteTimestamp2, 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 an excessive number of marker write operations may degrade command execution performance.
Valid Usage
- If the
geometryShaderfeature is not enabled,stagemust not containPIPELINE_STAGE_2_GEOMETRY_SHADER_BIT - If the
tessellationShaderfeature is not enabled,stagemust not containPIPELINE_STAGE_2_TESSELLATION_CONTROL_SHADER_BITorPIPELINE_STAGE_2_TESSELLATION_EVALUATION_SHADER_BIT - If the
conditionalRenderingfeature is not enabled,stagemust not containPIPELINE_STAGE_2_CONDITIONAL_RENDERING_BIT_EXT - If the
fragmentDensityMapfeature is not enabled,stagemust not containPIPELINE_STAGE_2_FRAGMENT_DENSITY_PROCESS_BIT_EXT - If the
transformFeedbackfeature is not enabled,stagemust not containPIPELINE_STAGE_2_TRANSFORM_FEEDBACK_BIT_EXT - If the
meshShaderfeature is not enabled,stagemust not containPIPELINE_STAGE_2_MESH_SHADER_BIT_EXT - If the
taskShaderfeature is not enabled,stagemust not containPIPELINE_STAGE_2_TASK_SHADER_BIT_EXT - If neither of the
shadingRateImageor theattachmentFragmentShadingRatefeatures are enabled,stagemust not containPIPELINE_STAGE_2_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR - If the
subpassShadingfeature is not enabled,stagemust not containPIPELINE_STAGE_2_SUBPASS_SHADER_BIT_HUAWEI - If the
invocationMaskfeature is not enabled,stagemust not containPIPELINE_STAGE_2_INVOCATION_MASK_BIT_HUAWEI - If neither the
VK_NV_ray_tracingextension or therayTracingPipelinefeature are enabled,stagemust not containPIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR - The
synchronization2feature must be enabled stagemust include only a single pipeline stagestagemust include only stages that are valid for the queue family that was used to create the command pool thatcommandBufferwas allocated fromdstOffsetmust be less than or equal to the size ofdstBufferminus 4dstBuffermust have been created with theBUFFER_USAGE_TRANSFER_DST_BITusage flag- If
dstBufferis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject dstOffsetmust be a multiple of 4
Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandlestagemust be a valid combination ofVkPipelineStageFlagBits2valuesdstBuffermust be a validVkBufferhandlecommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support transfer, graphics, or compute operations - This command must only be called outside of a video coding scope
- 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
Command Buffer Levels Render Pass Scope Video Coding Scope Supported Queue Types Command Type Primary Secondary Both Outside Transfer Graphics Compute Action - Parameters:
commandBuffer- the command buffer into which the command will be recorded.stage- specifies the pipeline stage whose completion triggers the marker write.dstBuffer- the buffer where the marker will be written.dstOffset- the byte offset into the buffer where the marker will be written.marker- the 32-bit value of the marker.
- If the
-