Skip to main content

CommandBuffer

Struct CommandBuffer 

Source
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§

Trait Implementations§

Source§

impl Drop for CommandBuffer

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Labeled for CommandBuffer

Source§

fn label(&self) -> &str

Returns a string identifying this resource for logging and errors. Read more
Source§

fn error_ident(&self) -> ResourceErrorIdent

Source§

impl ParentDevice for CommandBuffer

Source§

fn device(&self) -> &Arc<Device> ⓘ

Source§

fn is_equal(self: &Arc<Self>, other: &Arc<Self>) -> bool

Source§

fn same_device_as<O: ParentDevice>(&self, other: &O) -> Result<(), DeviceError>

Source§

fn same_device(&self, device: &Device) -> Result<(), DeviceError>

Source§

impl ResourceType for CommandBuffer

Source§

const TYPE: &'static str = "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
where Arc<Device>: Send, RawVecInner: Send, Mutex<RawMutex, CommandEncoderStatus>: Send, InternalBitFlags: Send,

§

impl Sync for CommandBuffer
where Arc<Device>: Sync, RawVecInner: Sync, Mutex<RawMutex, CommandEncoderStatus>: Sync, InternalBitFlags: Sync,

§

impl Unpin for CommandBuffer
where 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 CommandBuffer
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,