Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Name
VK_AMD_buffer_marker - device extension
VK_AMD_buffer_marker
- Name String
VK_AMD_buffer_marker
- Extension Type
- Device extension
- Registered Extension Number
- 180
- Revision
- 1
- Extension and Version Dependencies
- Requires support for Vulkan 1.0
- Special Use
- Contact
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
Description
This extension adds a new operation to execute pipelined writes of small
marker values into a Buffer
object.
The primary purpose of these markers is to facilitate the development of debugging tools for tracking which pipelined command contributed to device loss.
New Commands
New Enum Constants
Examples
None.
Version History
Revision 1, 2018-01-26 (Jaakko Konttinen)
- Initial revision
See Also
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- cmdWriteBufferMarkerAMD :: forall io. MonadIO io => CommandBuffer -> PipelineStageFlagBits -> ("dstBuffer" ::: Buffer) -> ("dstOffset" ::: DeviceSize) -> ("marker" ::: Word32) -> io ()
- type AMD_BUFFER_MARKER_SPEC_VERSION = 1
- pattern AMD_BUFFER_MARKER_SPEC_VERSION :: forall a. Integral a => a
- type AMD_BUFFER_MARKER_EXTENSION_NAME = "VK_AMD_buffer_marker"
- pattern AMD_BUFFER_MARKER_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
cmdWriteBufferMarkerAMD Source #
:: forall io. MonadIO io | |
=> CommandBuffer |
|
-> PipelineStageFlagBits |
|
-> ("dstBuffer" ::: Buffer) |
|
-> ("dstOffset" ::: DeviceSize) |
|
-> ("marker" ::: Word32) |
|
-> io () |
vkCmdWriteBufferMarkerAMD - Execute a pipelined write of a marker value into a buffer
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 cmdWriteBufferMarkerAMD
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
ACCESS_TRANSFER_WRITE_BIT
, and the
pipeline stages for identifying the synchronization scope must include
both pipelineStage
and
PIPELINE_STAGE_TRANSFER_BIT
.
Note
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.
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
-
pipelineStage
must be a valid stage for the queue family that was used to create the command pool thatcommandBuffer
was allocated from
- If the
geometryShader
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_GEOMETRY_SHADER_BIT
- If the
tessellationShader
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT
orPIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT
- If the
conditionalRendering
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_CONDITIONAL_RENDERING_BIT_EXT
- If the
fragmentDensityMap
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXT
- If the
transformFeedback
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT
- If the
meshShader
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_MESH_SHADER_BIT_EXT
- If the
taskShader
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_TASK_SHADER_BIT_EXT
- If neither
the
shadingRateImage
or
attachmentFragmentShadingRate
are enabled,
pipelineStage
must not bePIPELINE_STAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
- If the
synchronization2
feature is not enabled,
pipelineStage
must not bePIPELINE_STAGE_NONE
-
dstOffset
must be less than or equal to the size ofdstBuffer
minus4
-
dstBuffer
must have been created withBUFFER_USAGE_TRANSFER_DST_BIT
usage flag - If
dstBuffer
is non-sparse then it must be bound completely and contiguously to a singleDeviceMemory
object -
dstOffset
must be a multiple of4
Valid Usage (Implicit)
-
commandBuffer
must be a validCommandBuffer
handle
- If
pipelineStage
is not0
,pipelineStage
must be a validPipelineStageFlagBits
value -
dstBuffer
must be a validBuffer
handle -
commandBuffer
must be in the recording state - The
CommandPool
thatcommandBuffer
was allocated from must support transfer, graphics, or compute operations - This command must only be called outside of a video coding scope
- Both of
commandBuffer
, anddstBuffer
must have been created, allocated, or retrieved from the sameDevice
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
CommandPool
thatcommandBuffer
was 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 |
See Also
VK_AMD_buffer_marker,
Buffer
, CommandBuffer
,
DeviceSize
,
PipelineStageFlagBits
type AMD_BUFFER_MARKER_SPEC_VERSION = 1 Source #
pattern AMD_BUFFER_MARKER_SPEC_VERSION :: forall a. Integral a => a Source #
type AMD_BUFFER_MARKER_EXTENSION_NAME = "VK_AMD_buffer_marker" Source #
pattern AMD_BUFFER_MARKER_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #