Expand description
Command buffers.
A command buffer collects a list of commands to be submitted to the device.
Each command buffer has specific capabilities for graphics, compute or transfer operations, and can be either a primary command buffer or a secondary command buffer.
Operations are always initiated by a primary command buffer, but a primary command buffer can contain calls to secondary command buffers that contain snippets of commands that do specific things, similar to function calls.
All the possible commands are exposed by the CommandBuffer
trait.
Structs§
- Buffer
Copy - Specifies a source region and a destination region in a buffer for copying. All values are in units of bytes.
- Buffer
Image Copy - Bundles together all the parameters needed to copy a buffer to an image or vice-versa.
- Clear
Depth Stencil - A combination of depth and stencil clear values.
- Command
Buffer Flags - Option flags for various command buffer settings.
- Command
Buffer Inheritance Info - Image
Blit - Parameters for an image blit operation, where a portion of one image is copied into another, possibly with scaling and filtering.
- Image
Copy - Bundles together all the parameters needed to copy data from one
Image
to another. - Image
Resolve - Parameters for an image resolve operation, where a multi-sampled image is copied into a single-sampled image.
- Render
Attachment Info - A render attachment provided to
begin_render_pass
.
Enums§
- Attachment
Clear - Attachment clear description for the current subpass.
- Level
- An enum that indicates whether a command buffer is primary or secondary.
- Subpass
Contents - Specifies how commands for the following render passes will be recorded.
Traits§
- Command
Buffer - A trait that describes all the operations that must be
provided by a
Backend
’s command buffer.
Type Aliases§
- Descriptor
SetOffset - Offset for dynamic descriptors.
Unions§
- Clear
Color - A clear color union, which can be either
f32
,i32
, oru32
. - Clear
Value - A set of clear values for a single attachment.