Struct nannou::wgpu::CommandBufferDescriptor
source · #[repr(C)]pub struct CommandBufferDescriptor<L> {
pub label: L,
}
Expand description
Describes a CommandBuffer
.
Corresponds to WebGPU GPUCommandBufferDescriptor
.
Fields§
§label: L
Debug label of this command buffer.
Implementations§
source§impl<L> CommandBufferDescriptor<L>
impl<L> CommandBufferDescriptor<L>
sourcepub fn map_label<K>(
&self,
fun: impl FnOnce(&L) -> K
) -> CommandBufferDescriptor<K>
pub fn map_label<K>( &self, fun: impl FnOnce(&L) -> K ) -> CommandBufferDescriptor<K>
Takes a closure and maps the label of the command buffer descriptor into another.
Trait Implementations§
source§impl<L> Clone for CommandBufferDescriptor<L>where
L: Clone,
impl<L> Clone for CommandBufferDescriptor<L>where
L: Clone,
source§fn clone(&self) -> CommandBufferDescriptor<L>
fn clone(&self) -> CommandBufferDescriptor<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 for CommandBufferDescriptor<L>where
L: Debug,
impl<L> Debug for CommandBufferDescriptor<L>where
L: Debug,
source§impl<L> Default for CommandBufferDescriptor<L>where
L: Default,
impl<L> Default for CommandBufferDescriptor<L>where
L: Default,
source§fn default() -> CommandBufferDescriptor<L>
fn default() -> CommandBufferDescriptor<L>
Returns the “default value” for a type. Read more
source§impl<L> Hash for CommandBufferDescriptor<L>where
L: Hash,
impl<L> Hash for CommandBufferDescriptor<L>where
L: Hash,
source§impl<L> PartialEq for CommandBufferDescriptor<L>where
L: PartialEq,
impl<L> PartialEq for CommandBufferDescriptor<L>where
L: PartialEq,
source§fn eq(&self, other: &CommandBufferDescriptor<L>) -> bool
fn eq(&self, other: &CommandBufferDescriptor<L>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<L> Eq for CommandBufferDescriptor<L>where
L: Eq,
impl<L> StructuralEq for CommandBufferDescriptor<L>
impl<L> StructuralPartialEq for CommandBufferDescriptor<L>
Auto Trait Implementations§
impl<L> RefUnwindSafe for CommandBufferDescriptor<L>where
L: RefUnwindSafe,
impl<L> Send for CommandBufferDescriptor<L>where
L: Send,
impl<L> Sync for CommandBufferDescriptor<L>where
L: Sync,
impl<L> Unpin for CommandBufferDescriptor<L>where
L: Unpin,
impl<L> UnwindSafe for CommandBufferDescriptor<L>where
L: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds
error is returned which contains the unclamped color. Read moresource§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.