pub struct DescriptorSet { /* private fields */ }Expand description
A descriptor set: a collection of resource bindings.
Implementations§
Source§impl DescriptorSet
impl DescriptorSet
Sourcepub fn add_binding(&mut self, binding: DescriptorBinding)
pub fn add_binding(&mut self, binding: DescriptorBinding)
Add a binding to the set, replacing any existing binding at the same slot.
Sourcepub fn binding_count(&self) -> usize
pub fn binding_count(&self) -> usize
Total number of bindings in the set.
Sourcepub fn get_binding(&self, slot: u32) -> Option<&DescriptorBinding>
pub fn get_binding(&self, slot: u32) -> Option<&DescriptorBinding>
Retrieve a binding by its slot number.
Sourcepub fn buffer_bindings(&self) -> Vec<&DescriptorBinding>
pub fn buffer_bindings(&self) -> Vec<&DescriptorBinding>
Returns all buffer bindings.
Sourcepub fn texture_bindings(&self) -> Vec<&DescriptorBinding>
pub fn texture_bindings(&self) -> Vec<&DescriptorBinding>
Returns all texture bindings.
Trait Implementations§
Source§impl Debug for DescriptorSet
impl Debug for DescriptorSet
Source§impl Default for DescriptorSet
impl Default for DescriptorSet
Source§fn default() -> DescriptorSet
fn default() -> DescriptorSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DescriptorSet
impl RefUnwindSafe for DescriptorSet
impl Send for DescriptorSet
impl Sync for DescriptorSet
impl Unpin for DescriptorSet
impl UnsafeUnpin for DescriptorSet
impl UnwindSafe for DescriptorSet
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more