Struct wgpu_types::CommandEncoderDescriptor
source · [−]#[repr(C)]pub struct CommandEncoderDescriptor<L> {
pub label: L,
}
Expand description
Describes a CommandEncoder
.
Corresponds to WebGPU GPUCommandEncoderDescriptor
.
Fields
label: L
Debug label for the command encoder. This will show up in graphics debuggers for easy identification.
Implementations
sourceimpl<L> CommandEncoderDescriptor<L>
impl<L> CommandEncoderDescriptor<L>
sourcepub fn map_label<K>(
&self,
fun: impl FnOnce(&L) -> K
) -> CommandEncoderDescriptor<K>
pub fn map_label<K>(
&self,
fun: impl FnOnce(&L) -> K
) -> CommandEncoderDescriptor<K>
Trait Implementations
sourceimpl<L: Clone> Clone for CommandEncoderDescriptor<L>
impl<L: Clone> Clone for CommandEncoderDescriptor<L>
sourcefn clone(&self) -> CommandEncoderDescriptor<L>
fn clone(&self) -> CommandEncoderDescriptor<L>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<L: Debug> Debug for CommandEncoderDescriptor<L>
impl<L: Debug> Debug for CommandEncoderDescriptor<L>
sourceimpl<T> Default for CommandEncoderDescriptor<Option<T>>
impl<T> Default for CommandEncoderDescriptor<Option<T>>
sourceimpl<L: Hash> Hash for CommandEncoderDescriptor<L>
impl<L: Hash> Hash for CommandEncoderDescriptor<L>
sourceimpl<L: PartialEq> PartialEq<CommandEncoderDescriptor<L>> for CommandEncoderDescriptor<L>
impl<L: PartialEq> PartialEq<CommandEncoderDescriptor<L>> for CommandEncoderDescriptor<L>
sourcefn eq(&self, other: &CommandEncoderDescriptor<L>) -> bool
fn eq(&self, other: &CommandEncoderDescriptor<L>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommandEncoderDescriptor<L>) -> bool
fn ne(&self, other: &CommandEncoderDescriptor<L>) -> bool
This method tests for !=
.
impl<L: Eq> Eq for CommandEncoderDescriptor<L>
impl<L> StructuralEq for CommandEncoderDescriptor<L>
impl<L> StructuralPartialEq for CommandEncoderDescriptor<L>
Auto Trait Implementations
impl<L> RefUnwindSafe for CommandEncoderDescriptor<L> where
L: RefUnwindSafe,
impl<L> Send for CommandEncoderDescriptor<L> where
L: Send,
impl<L> Sync for CommandEncoderDescriptor<L> where
L: Sync,
impl<L> Unpin for CommandEncoderDescriptor<L> where
L: Unpin,
impl<L> UnwindSafe for CommandEncoderDescriptor<L> where
L: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more