pub enum BindingLayoutSource<'a> {
Derived(ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>),
Provided(ArrayVec<&'a EntryMap, { hal::MAX_BIND_GROUPS }>),
}
Variants§
Derived(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> Freeze for BindingLayoutSource<'a>
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