wgpu_core::command

Type Alias RenderBundleDescriptor

Source
pub type RenderBundleDescriptor<'a> = RenderBundleDescriptor<Label<'a>>;

Aliased Type§

struct RenderBundleDescriptor<'a> {
    pub label: Option<Cow<'a, str>>,
}

Fields§

§label: Option<Cow<'a, str>>

Debug label of the render bundle encoder. This will show up in graphics debuggers for easy identification.

Implementations

Source§

impl<L> RenderBundleDescriptor<L>

Source

pub fn map_label<K>( &self, fun: impl FnOnce(&L) -> K, ) -> RenderBundleDescriptor<K>

Takes a closure and maps the label of the render bundle descriptor into another.

Trait Implementations

Source§

impl<L> Clone for RenderBundleDescriptor<L>
where L: Clone,

Source§

fn clone(&self) -> RenderBundleDescriptor<L>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<L> Debug for RenderBundleDescriptor<L>
where L: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Default for RenderBundleDescriptor<Option<T>>

Source§

fn default() -> RenderBundleDescriptor<Option<T>>

Returns the “default value” for a type. Read more
Source§

impl<'de, L> Deserialize<'de> for RenderBundleDescriptor<L>
where L: Deserialize<'de>,

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<RenderBundleDescriptor<L>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<L> Hash for RenderBundleDescriptor<L>
where L: Hash,

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<L> PartialEq for RenderBundleDescriptor<L>
where L: PartialEq,

Source§

fn eq(&self, other: &RenderBundleDescriptor<L>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<L> Serialize for RenderBundleDescriptor<L>
where L: Serialize,

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<L> Eq for RenderBundleDescriptor<L>
where L: Eq,

Source§

impl<L> StructuralPartialEq for RenderBundleDescriptor<L>