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 !RefUnwindSafe for BindingLayoutSource
impl !UnwindSafe for BindingLayoutSource
impl Forget for BindingLayoutSource
impl Freeze for BindingLayoutSourcewhere
*const ArrayVec<EntryMap, 8> is !null: Freeze,
PhantomData<ArrayVec<EntryMap, 8>>: Freeze,
*const ArcInner<PipelineLayout> is !null: Freeze,
PhantomData<ArcInner<PipelineLayout>>: Freeze,
impl Move for BindingLayoutSource
impl Send for BindingLayoutSource
impl Sync for BindingLayoutSource
impl Unpin for BindingLayoutSource
impl UnsafeUnpin for BindingLayoutSourcewhere
*const ArrayVec<EntryMap, 8> is !null: UnsafeUnpin,
PhantomData<ArrayVec<EntryMap, 8>>: UnsafeUnpin,
*const ArcInner<PipelineLayout> is !null: UnsafeUnpin,
PhantomData<ArcInner<PipelineLayout>>: UnsafeUnpin,
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