#[repr(C)]pub struct RenderBundleDescriptor<L> {
pub label: L,
}
Expand description
Describes a RenderBundle
.
Corresponds to WebGPU GPURenderBundleDescriptor
.
Fields§
§label: L
Debug label of the render bundle encoder. This will show up in graphics debuggers for easy identification.
Implementations§
Source§impl<L> RenderBundleDescriptor<L>
impl<L> RenderBundleDescriptor<L>
Sourcepub fn map_label<K>(
&self,
fun: impl FnOnce(&L) -> K,
) -> RenderBundleDescriptor<K>
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> Clone for RenderBundleDescriptor<L>
impl<L: Clone> Clone for RenderBundleDescriptor<L>
Source§fn clone(&self) -> RenderBundleDescriptor<L>
fn clone(&self) -> RenderBundleDescriptor<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 RenderBundleDescriptor<L>
impl<L: Debug> Debug for RenderBundleDescriptor<L>
Source§impl<T> Default for RenderBundleDescriptor<Option<T>>
impl<T> Default for RenderBundleDescriptor<Option<T>>
Source§impl<'de, L> Deserialize<'de> for RenderBundleDescriptor<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for RenderBundleDescriptor<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 RenderBundleDescriptor<L>
impl<L: Hash> Hash for RenderBundleDescriptor<L>
Source§impl<L: PartialEq> PartialEq for RenderBundleDescriptor<L>
impl<L: PartialEq> PartialEq for RenderBundleDescriptor<L>
Source§impl<L> Serialize for RenderBundleDescriptor<L>where
L: Serialize,
impl<L> Serialize for RenderBundleDescriptor<L>where
L: Serialize,
impl<L: Eq> Eq for RenderBundleDescriptor<L>
impl<L> StructuralPartialEq for RenderBundleDescriptor<L>
Auto Trait Implementations§
impl<L> Freeze for RenderBundleDescriptor<L>where
L: Freeze,
impl<L> RefUnwindSafe for RenderBundleDescriptor<L>where
L: RefUnwindSafe,
impl<L> Send for RenderBundleDescriptor<L>where
L: Send,
impl<L> Sync for RenderBundleDescriptor<L>where
L: Sync,
impl<L> Unpin for RenderBundleDescriptor<L>where
L: Unpin,
impl<L> UnwindSafe for RenderBundleDescriptor<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
)