pub struct BackendLayoutSlot {
pub group: u32,
pub binding: u32,
pub class: BackendLayoutClass,
pub read_only: bool,
pub element_size: usize,
}Expand description
Backend-neutral descriptor/bind-group layout slot.
Concrete drivers own target-specific object creation, but the fingerprint used to decide whether a descriptor layout is reusable is shared here so portable/native/secondary do not grow separate cache-key rules.
Fields§
§group: u32Target descriptor group/set.
binding: u32Binding index inside the descriptor group/set.
class: BackendLayoutClassDescriptor memory class.
read_only: boolWhether storage descriptors are read-only.
element_size: usizeElement size in bytes when statically known.
Trait Implementations§
Source§impl Clone for BackendLayoutSlot
impl Clone for BackendLayoutSlot
Source§fn clone(&self) -> BackendLayoutSlot
fn clone(&self) -> BackendLayoutSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackendLayoutSlot
Source§impl Debug for BackendLayoutSlot
impl Debug for BackendLayoutSlot
impl Eq for BackendLayoutSlot
Source§impl Hash for BackendLayoutSlot
impl Hash for BackendLayoutSlot
Source§impl PartialEq for BackendLayoutSlot
impl PartialEq for BackendLayoutSlot
Source§fn eq(&self, other: &BackendLayoutSlot) -> bool
fn eq(&self, other: &BackendLayoutSlot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendLayoutSlot
Auto Trait Implementations§
impl Freeze for BackendLayoutSlot
impl RefUnwindSafe for BackendLayoutSlot
impl Send for BackendLayoutSlot
impl Sync for BackendLayoutSlot
impl Unpin for BackendLayoutSlot
impl UnsafeUnpin for BackendLayoutSlot
impl UnwindSafe for BackendLayoutSlot
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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.