Module command

Module command 

Source
Expand description

§Command Encoding

TODO: High-level description of command encoding.

The convention in this module is that functions accepting a [&mut dyn hal::DynCommandEncoder] are low-level helpers and may assume the encoder is in the open state, ready to encode commands. Encoders that are not open should be nested within some other container that provides additional state tracking, like [InnerCommandEncoder].

Modules§

bundle_ffi
ffi
Types that are useful for FFI bindings to wgpu.

Structs§

ArcReferences
Reference wgpu objects via Arcs.
CommandBuffer
A buffer of commands to be submitted to the GPU for execution.
CommandBufferMutable
The mutable state of a CommandBuffer.
ComputePass
A pass’s encoder state and its validity are two distinct conditions, i.e., the full matrix of (open, ended) x (valid, invalid) is possible.
ComputePassDescriptor
ComputePassError
Error encountered when performing a compute pass, stored for later reporting when encoding ends.
IdReferences
Reference wgpu objects via numeric IDs assigned by crate::identity::IdentityManager.
PassChannel
Describes an individual channel within a render pass, such as color, depth, or stencil.
PassStateError
Variant of EncoderStateError that includes the pass scope.
PassTimestampWrites
Describes the writing of timestamp values in a render or compute pass.
Rect
RenderBundle
cbindgen:ignore
RenderBundleEncoder
RenderBundleEncoderDescriptor
Describes a RenderBundleEncoder.
RenderBundleError
Error encountered when finishing recording a render bundle.
RenderPass
A pass’s encoder state and its validity are two distinct conditions, i.e., the full matrix of (open, ended) x (valid, invalid) is possible.
RenderPassColorAttachment
Describes a color attachment to a render pass.
RenderPassDepthStencilAttachment
Describes a depth/stencil attachment to a render pass.
RenderPassDescriptor
Describes the attachments of a render pass.
RenderPassError
Error encountered when performing a render pass.
ResolvedRenderPassDepthStencilAttachment
Describes a depth/stencil attachment to a render pass.

Enums§

AttachmentError
AttachmentErrorLocation
Describes an attachment location in words.
ClearError
Error encountered while attempting a clear.
ColorAttachmentError
Command
CommandEncoderError
ComputeCommand
cbindgen:ignore cbindgen:ignore
ComputePassErrorInner
Error encountered when performing a compute pass.
CopySide
CreateRenderBundleError
Error type returned from RenderBundleEncoder::new if the sample count is invalid.
DebugGroupError
DispatchError
DrawCommandFamily
The type of draw command(indexed or not, or mesh shader)
DrawError
Error validating a draw call.
DrawKind
EncoderStateError
Errors related to the state of a command or pass encoder.
EncodingApi
The encoding API being used with a CommandEncoder.
ExecutionError
Error type returned from RenderBundleEncoder::new if the sample count is invalid.
LoadOp
Operation to perform to the output attachment at the start of a render pass.
PassErrorScope
A command that can be recorded in a pass or bundle.
QueryError
Error encountered when dealing with queries
QueryUseError
Error encountered while trying to use queries
RenderBundleErrorInner
Error encountered when finishing recording a render bundle.
RenderCommandError
Error encountered when encoding a render command. This is the shared error set between render bundles and passes.
RenderPassErrorInner
Error encountered when performing a render pass.
ResolveError
Error encountered while trying to resolve a query.
ResolvedPassChannel
Describes an individual channel within a render pass, such as color, depth, or stencil.
SimplifiedQueryType
StoreOp
Operation to perform to the output attachment at the end of a render pass.
TimestampWritesError
TransferError
Error encountered while attempting a data transfer.

Traits§

ReferenceType

Type Aliases§

ArcCommand
ArcComputeCommand
cbindgen:ignore
ArcRenderCommand
Equivalent to RenderCommand with the Ids resolved into resource Arcs.
ArcRenderPassColorAttachment
ColorAttachments
ComputeBasePass
CopyExternalImageDestInfo
cbindgen:ignore
RenderBasePass
RenderBundleDescriptor
TexelCopyBufferInfo
cbindgen:ignore
TexelCopyTextureInfo
cbindgen:ignore