pub struct Bindings { /* private fields */ }Expand description
Descriptor sets and image views for one submission.
Built per submission and torn down with it, matching the multisample and stencil buffers: the alternative is a cache keyed by texture identity, whose invalidation rule has to answer what happens when a caller destroys a texture a set still points at.
Implementations§
Source§impl Bindings
impl Bindings
Sourcepub fn placeholder_only(placeholder: DescriptorSet) -> Self
pub fn placeholder_only(placeholder: DescriptorSet) -> Self
Bindings for a batch that samples nothing.
Sourcepub fn set_for(&self, slots: [Option<u32>; 4]) -> DescriptorSet
pub fn set_for(&self, slots: [Option<u32>; 4]) -> DescriptorSet
The set a draw’s material selects.
A material naming no texture gets the placeholder, which is why this cannot fail: the table was checked to cover every slot when it was built.
pub fn destroy(self, ctx: &VulkanContext)
Auto Trait Implementations§
impl Freeze for Bindings
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnsafeUnpin for Bindings
impl UnwindSafe for Bindings
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