pub struct DescriptorSetLayoutBindingBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> DescriptorSetLayoutBindingBuilder<'a>
impl<'a> DescriptorSetLayoutBindingBuilder<'a>
pub fn binding(self, binding: u32) -> Self
pub fn descriptor_type(self, descriptor_type: DescriptorType) -> Self
pub fn descriptor_count(self, descriptor_count: u32) -> Self
pub fn stage_flags(self, stage_flags: ShaderStageFlags) -> Self
pub fn immutable_samplers(self, immutable_samplers: &'a [Sampler]) -> Self
Sourcepub fn build(self) -> DescriptorSetLayoutBinding
pub fn build(self) -> DescriptorSetLayoutBinding
Calling build will discard all the lifetime information. Only call this if
necessary! Builders implement Deref
targeting their corresponding Vulkan struct,
so references to builders can be passed directly to Vulkan functions.
Trait Implementations§
Source§impl<'a> Deref for DescriptorSetLayoutBindingBuilder<'a>
impl<'a> Deref for DescriptorSetLayoutBindingBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for DescriptorSetLayoutBindingBuilder<'a>
impl<'a> RefUnwindSafe for DescriptorSetLayoutBindingBuilder<'a>
impl<'a> !Send for DescriptorSetLayoutBindingBuilder<'a>
impl<'a> !Sync for DescriptorSetLayoutBindingBuilder<'a>
impl<'a> Unpin for DescriptorSetLayoutBindingBuilder<'a>
impl<'a> UnwindSafe for DescriptorSetLayoutBindingBuilder<'a>
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