pub(super) struct Binder {
pub(super) pipeline_layout: Option<Arc<PipelineLayout>>,
manager: BoundBindGroupLayouts,
payloads: [EntryPayload; 8],
}
Fields§
§pipeline_layout: Option<Arc<PipelineLayout>>
§manager: BoundBindGroupLayouts
§payloads: [EntryPayload; 8]
Implementations§
source§impl Binder
impl Binder
pub(super) fn new() -> Self
pub(super) fn reset(&mut self)
pub(super) fn change_pipeline_layout<'a>( &'a mut self, new: &Arc<PipelineLayout>, late_sized_buffer_groups: &[LateSizedBufferGroup], ) -> (usize, &'a [EntryPayload])
pub(super) fn assign_group<'a>( &'a mut self, index: usize, bind_group: &Arc<BindGroup>, offsets: &[DynamicOffset], ) -> &'a [EntryPayload]
pub(super) fn list_active<'a>( &'a self, ) -> impl Iterator<Item = &'a Arc<BindGroup>> + '_
pub(super) fn check_compatibility<T: Labeled>( &self, pipeline: &T, ) -> Result<(), Box<BinderError>>
sourcepub(super) fn check_late_buffer_bindings(
&self,
) -> Result<(), LateMinBufferBindingSizeMismatch>
pub(super) fn check_late_buffer_bindings( &self, ) -> Result<(), LateMinBufferBindingSizeMismatch>
Scan active buffer bindings corresponding to layouts without min_binding_size
specified.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Binder
impl !RefUnwindSafe for Binder
impl Send for Binder
impl Sync for Binder
impl Unpin for Binder
impl !UnwindSafe for Binder
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