Struct wgpu::CommandBufferDescriptor
[−]#[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
impl<L> CommandBufferDescriptor<L>
impl<L> CommandBufferDescriptor<L>
pub 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>
Trait Implementations
impl<L> Clone for CommandBufferDescriptor<L> where
L: Clone,
impl<L> Clone for CommandBufferDescriptor<L> where
L: Clone,
fn clone(&self) -> CommandBufferDescriptor<L>
fn clone(&self) -> CommandBufferDescriptor<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
impl<L> Debug for CommandBufferDescriptor<L> where
L: Debug,
impl<L> Debug for CommandBufferDescriptor<L> where
L: Debug,
impl<L> Default for CommandBufferDescriptor<L> where
L: Default,
impl<L> Default for CommandBufferDescriptor<L> where
L: Default,
fn default() -> CommandBufferDescriptor<L>
fn default() -> CommandBufferDescriptor<L>
Returns the “default value” for a type. Read more
impl<L> Hash for CommandBufferDescriptor<L> where
L: Hash,
impl<L> Hash for CommandBufferDescriptor<L> where
L: Hash,
impl<L> PartialEq<CommandBufferDescriptor<L>> for CommandBufferDescriptor<L> where
L: PartialEq<L>,
impl<L> PartialEq<CommandBufferDescriptor<L>> for CommandBufferDescriptor<L> where
L: PartialEq<L>,
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 ==
. Read more
fn ne(&self, other: &CommandBufferDescriptor<L>) -> bool
fn ne(&self, other: &CommandBufferDescriptor<L>) -> bool
This method tests for !=
.
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
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more