pub enum BindingLayoutSource {
Derived(Box<ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>>),
Provided(Arc<PipelineLayout>),
}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(Arc<PipelineLayout>)
The binding layout is provided by the user in BGLs.
This will be validated against the shader’s interfaces.
Implementations§
Source§impl BindingLayoutSource
impl BindingLayoutSource
pub fn new_derived(limits: &Limits) -> Self
Auto Trait Implementations§
impl Freeze for BindingLayoutSource
impl !RefUnwindSafe for BindingLayoutSource
impl Send for BindingLayoutSource
impl Sync for BindingLayoutSource
impl Unpin for BindingLayoutSource
impl !UnwindSafe for BindingLayoutSource
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