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§
source§impl<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>
Takes a closure and maps the label of the command encoder descriptor into another.
Trait Implementations§
source§impl<L: Clone> Clone for CommandEncoderDescriptor<L>
impl<L: Clone> Clone for CommandEncoderDescriptor<L>
source§fn clone(&self) -> CommandEncoderDescriptor<L>
fn clone(&self) -> CommandEncoderDescriptor<L>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<L: Debug> Debug for CommandEncoderDescriptor<L>
impl<L: Debug> Debug for CommandEncoderDescriptor<L>
source§impl<T> Default for CommandEncoderDescriptor<Option<T>>
impl<T> Default for CommandEncoderDescriptor<Option<T>>
source§impl<'de, L> Deserialize<'de> for CommandEncoderDescriptor<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for CommandEncoderDescriptor<L>where L: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<L: Hash> Hash for CommandEncoderDescriptor<L>
impl<L: Hash> Hash for CommandEncoderDescriptor<L>
source§impl<L: PartialEq> PartialEq<CommandEncoderDescriptor<L>> for CommandEncoderDescriptor<L>
impl<L: PartialEq> PartialEq<CommandEncoderDescriptor<L>> for CommandEncoderDescriptor<L>
source§fn 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 ==
.