pub struct CommandBuffer { /* private fields */ }Expand description
A buffer of commands to be submitted to the GPU for execution.
Once a command buffer is submitted to the queue, its contents are taken
to construct a [BakedCommands], whose contents eventually become the
property of the submission queue.
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
pub fn take_finished(&self) -> Result<CommandBufferMutable, CommandEncoderError>
Trait Implementations§
Source§impl Drop for CommandBuffer
impl Drop for CommandBuffer
Source§impl Labeled for CommandBuffer
impl Labeled for CommandBuffer
Source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
Source§impl ParentDevice for CommandBuffer
impl ParentDevice for CommandBuffer
Source§impl ResourceType for CommandBuffer
impl ResourceType for CommandBuffer
Auto Trait Implementations§
impl !Freeze for CommandBuffer
impl !RefUnwindSafe for CommandBuffer
impl !UnwindSafe for CommandBuffer
impl Forget for CommandBuffer
impl Move for CommandBuffer
impl Send for CommandBuffer
impl Sync for CommandBuffer
impl Unpin for CommandBufferwhere
Arc<Device>: Unpin,
*const u8 is !null: Unpin,
Align1<u8>: Unpin,
Box<dyn DynCommandEncoder>: Unpin,
Box<dyn DynCommandBuffer>: Unpin,
InternalBitFlags: Unpin,
Arc<Buffer>: Unpin,
(): Unpin,
InternalBitFlags: Unpin,
*const (Range<u32>, TextureUses) is !null: Unpin,
(Range<u32>, TextureUses): Unpin,
Arc<Texture>: Unpin,
TextureSelector: Unpin,
Arc<Blas>: Unpin,
Arc<Tlas>: Unpin,
Arc<TextureView>: Unpin,
Arc<BindGroup>: Unpin,
Arc<ComputePipeline>: Unpin,
Arc<RenderPipeline>: Unpin,
Arc<RayTracingPipeline>: Unpin,
Arc<RenderBundle>: Unpin,
Arc<QuerySet>: Unpin,
Arc<[RayTracingIntersectionType]>: Unpin,
Box<dyn DynBuffer>: Unpin,
NonZero<u64>: Unpin,
*const ArcInner<BindGroup> is !null: Unpin,
Box<dyn DynBindGroup>: Unpin,
Box<dyn DynTexture>: Unpin,
*const ArcInner<TextureView> is !null: Unpin,
Box<dyn DynTextureView>: Unpin,
*const Box<dyn DynTextureView> is !null: Unpin,
&'static [TextureAspect]: Unpin,
Box<dyn DynQuerySet>: Unpin,
*const Option<RenderPassColorAttachment> is !null: Unpin,
Option<RenderPassColorAttachment>: Unpin,
NonZero<u32>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
PointerId<Buffer>: Unpin,
PointerId<Texture>: Unpin,
PointerId<QuerySet>: Unpin,
PointerId<BindGroup>: Unpin,
PointerId<ComputePipeline>: Unpin,
PointerId<TextureView>: Unpin,
PointerId<RayTracingPipeline>: Unpin,
PointerId<RenderPipeline>: Unpin,
PointerId<RenderBundle>: Unpin,
*const Option<RenderPassColorAttachment<PointerId<TextureView>>> is !null: Unpin,
Option<RenderPassColorAttachment<PointerId<TextureView>>>: Unpin,
PointerId<Blas>: Unpin,
PointerId<Tlas>: Unpin,
Box<DeviceMismatch>: Unpin,
&'static str: Unpin,
String: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
Box<BinderError>: Unpin,
Box<RenderPassErrorInner>: Unpin,
Box<RayTracingPassErrorInner>: Unpin,
InternalBitFlags: Unpin,
impl UnsafeUnpin for CommandBufferwhere
*const ArcInner<Device> is !null: UnsafeUnpin,
PhantomData<ArcInner<Device>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const dyn DynCommandEncoder is !null: UnsafeUnpin,
PhantomData<dyn DynCommandEncoder>: UnsafeUnpin,
PhantomData<Box<dyn DynCommandBuffer>>: UnsafeUnpin,
PhantomData<BufferUses>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Option<Arc<Buffer>>>: UnsafeUnpin,
PhantomData<PendingTransition<BufferUses>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<TextureUses>: UnsafeUnpin,
PhantomData<fn() -> FxHasher>: UnsafeUnpin,
PhantomData<(usize, ComplexTextureState)>: UnsafeUnpin,
PhantomData<Option<Arc<Texture>>>: UnsafeUnpin,
PhantomData<PendingTransition<TextureUses>>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<Option<Arc<Blas>>>: UnsafeUnpin,
PhantomData<Arc<Tlas>>: UnsafeUnpin,
PhantomData<Arc<TextureView>>: UnsafeUnpin,
PhantomData<Arc<BindGroup>>: UnsafeUnpin,
PhantomData<Arc<ComputePipeline>>: UnsafeUnpin,
PhantomData<Arc<RenderPipeline>>: UnsafeUnpin,
PhantomData<Arc<RayTracingPipeline>>: UnsafeUnpin,
PhantomData<Arc<RenderBundle>>: UnsafeUnpin,
PhantomData<Option<Arc<QuerySet>>>: UnsafeUnpin,
PhantomData<BufferInitTrackerAction>: UnsafeUnpin,
PhantomData<TextureInitTrackerAction>: UnsafeUnpin,
PhantomData<TextureSurfaceDiscard>: UnsafeUnpin,
PhantomData<AsAction>: UnsafeUnpin,
PhantomData<TempResource>: UnsafeUnpin,
PhantomData<BufferPoolEntry>: UnsafeUnpin,
PhantomData<Command<ArcReferences>>: UnsafeUnpin,
PhantomData<Command<PointerReferences>>: UnsafeUnpin,
PhantomData<(TrackerIndex, BitVec)>: UnsafeUnpin,
PhantomData<DeferredQuerySetResolve>: UnsafeUnpin,
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
*const BinderError is !null: UnsafeUnpin,
PhantomData<BinderError>: UnsafeUnpin,
*const RenderPassErrorInner is !null: UnsafeUnpin,
PhantomData<RenderPassErrorInner>: UnsafeUnpin,
*const RayTracingPassErrorInner is !null: UnsafeUnpin,
PhantomData<RayTracingPassErrorInner>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more