pub struct DescriptorSetLayout {
pub group: u32,
pub bindings: Vec<DescriptorBinding>,
}Expand description
A layout describing all bindings in a descriptor set group.
Fields§
§group: u32Group index (set number).
bindings: Vec<DescriptorBinding>All binding entries.
Implementations§
Source§impl DescriptorSetLayout
impl DescriptorSetLayout
Sourcepub fn add_storage_buffer(
&mut self,
binding: u32,
stage: ShaderStage,
read_only: bool,
)
pub fn add_storage_buffer( &mut self, binding: u32, stage: ShaderStage, read_only: bool, )
Add a storage buffer binding.
Sourcepub fn add_uniform_buffer(&mut self, binding: u32, stage: ShaderStage)
pub fn add_uniform_buffer(&mut self, binding: u32, stage: ShaderStage)
Add a uniform buffer binding.
Sourcepub fn add_sampler(&mut self, binding: u32, stage: ShaderStage)
pub fn add_sampler(&mut self, binding: u32, stage: ShaderStage)
Add a combined image sampler binding.
Trait Implementations§
Source§impl Clone for DescriptorSetLayout
impl Clone for DescriptorSetLayout
Source§fn clone(&self) -> DescriptorSetLayout
fn clone(&self) -> DescriptorSetLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DescriptorSetLayout
impl RefUnwindSafe for DescriptorSetLayout
impl Send for DescriptorSetLayout
impl Sync for DescriptorSetLayout
impl Unpin for DescriptorSetLayout
impl UnsafeUnpin for DescriptorSetLayout
impl UnwindSafe for DescriptorSetLayout
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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