pub struct DescriptorSetLayoutBinding<'s> { /* private fields */ }
Implementations§
Source§impl<'s> DescriptorSetLayoutBinding<'s>
impl<'s> DescriptorSetLayoutBinding<'s>
pub const fn new( binding: u32, type: DescriptorType, count: u32, shader_stage: VkShaderStageFlags, ) -> Self
pub fn with_immutable_samplers( self, samplers: &'s [VkHandleRef<'_, VkSampler>], ) -> Self
pub const unsafe fn with_immutable_samplers_unchecked( self, samplers: &'s [VkHandleRef<'_, VkSampler>], ) -> Self
pub const fn for_shader_stage(self, mask: VkShaderStageFlags) -> Self
pub const fn only_for_vertex(self) -> Self
pub const fn only_for_tess_control(self) -> Self
pub const fn only_for_tess_evaluation(self) -> Self
pub const fn only_for_tessellation(self) -> Self
pub const fn only_for_geometry(self) -> Self
pub const fn only_for_fragment(self) -> Self
pub const fn only_for_compute(self) -> Self
Trait Implementations§
Source§impl<'s> Clone for DescriptorSetLayoutBinding<'s>
impl<'s> Clone for DescriptorSetLayoutBinding<'s>
Source§fn clone(&self) -> DescriptorSetLayoutBinding<'s>
fn clone(&self) -> DescriptorSetLayoutBinding<'s>
Returns a duplicate of the value. Read more
1.0.0 · 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<'s> Freeze for DescriptorSetLayoutBinding<'s>
impl<'s> !RefUnwindSafe for DescriptorSetLayoutBinding<'s>
impl<'s> !Send for DescriptorSetLayoutBinding<'s>
impl<'s> !Sync for DescriptorSetLayoutBinding<'s>
impl<'s> Unpin for DescriptorSetLayoutBinding<'s>
impl<'s> !UnwindSafe for DescriptorSetLayoutBinding<'s>
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