Enum wgpu_core::validation::BindingLayoutSource
source · pub enum BindingLayoutSource<'a> {
Derived(Box<ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>>),
Provided(ArrayVec<&'a EntryMap, { hal::MAX_BIND_GROUPS }>),
}
Variants§
Derived(Box<ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>>)
The binding layout is derived from the pipeline layout.
This will be filled in by the shader binding validation, as it iterates the shader’s interfaces.
Provided(ArrayVec<&'a EntryMap, { hal::MAX_BIND_GROUPS }>)
The binding layout is provided by the user in BGLs.
This will be validated against the shader’s interfaces.
Implementations§
source§impl<'a> BindingLayoutSource<'a>
impl<'a> BindingLayoutSource<'a>
pub fn new_derived(limits: &Limits) -> Self
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BindingLayoutSource<'a>
impl<'a> Send for BindingLayoutSource<'a>
impl<'a> Sync for BindingLayoutSource<'a>
impl<'a> Unpin for BindingLayoutSource<'a>
impl<'a> UnwindSafe for BindingLayoutSource<'a>
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