#[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> Clone for CommandBufferDescriptor<L>
impl<L: Clone> Clone for CommandBufferDescriptor<L>
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> Debug for CommandBufferDescriptor<L>
impl<L: Debug> Debug for CommandBufferDescriptor<L>
Source§impl<L: Default> Default for CommandBufferDescriptor<L>
impl<L: Default> Default for CommandBufferDescriptor<L>
Source§fn default() -> CommandBufferDescriptor<L>
fn default() -> CommandBufferDescriptor<L>
Returns the “default value” for a type. Read more
Source§impl<'de, L> Deserialize<'de> for CommandBufferDescriptor<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for CommandBufferDescriptor<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 CommandBufferDescriptor<L>
impl<L: Hash> Hash for CommandBufferDescriptor<L>
Source§impl<L: PartialEq> PartialEq for CommandBufferDescriptor<L>
impl<L: PartialEq> PartialEq for CommandBufferDescriptor<L>
Source§impl<L> Serialize for CommandBufferDescriptor<L>where
L: Serialize,
impl<L> Serialize for CommandBufferDescriptor<L>where
L: Serialize,
impl<L: Eq> Eq for CommandBufferDescriptor<L>
impl<L> StructuralPartialEq for CommandBufferDescriptor<L>
Auto Trait Implementations§
impl<L> Freeze for CommandBufferDescriptor<L>where
L: Freeze,
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<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)