#[repr(C)]pub struct DescriptorSetLayoutBinding<'a> {
pub binding: u32,
pub descriptor_type: DescriptorType,
pub descriptor_count: u32,
pub stage_flags: ShaderStageFlags,
pub p_immutable_samplers: *const Sampler,
pub _marker: PhantomData<&'a ()>,
}Expand description
Fields§
§binding: u32§descriptor_type: DescriptorType§descriptor_count: u32§stage_flags: ShaderStageFlags§p_immutable_samplers: *const Sampler§_marker: PhantomData<&'a ()>Implementations§
Source§impl<'a> DescriptorSetLayoutBinding<'a>
impl<'a> DescriptorSetLayoutBinding<'a>
pub fn binding(self, binding: u32) -> DescriptorSetLayoutBinding<'a>
pub fn descriptor_type( self, descriptor_type: DescriptorType, ) -> DescriptorSetLayoutBinding<'a>
pub fn descriptor_count( self, descriptor_count: u32, ) -> DescriptorSetLayoutBinding<'a>
pub fn stage_flags( self, stage_flags: ShaderStageFlags, ) -> DescriptorSetLayoutBinding<'a>
pub fn immutable_samplers( self, immutable_samplers: &'a [Sampler], ) -> DescriptorSetLayoutBinding<'a>
Trait Implementations§
Source§impl<'a> Clone for DescriptorSetLayoutBinding<'a>
impl<'a> Clone for DescriptorSetLayoutBinding<'a>
Source§fn clone(&self) -> DescriptorSetLayoutBinding<'a>
fn clone(&self) -> DescriptorSetLayoutBinding<'a>
Returns a copy 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 moreSource§impl<'a> Debug for DescriptorSetLayoutBinding<'a>
impl<'a> Debug for DescriptorSetLayoutBinding<'a>
Source§impl Default for DescriptorSetLayoutBinding<'_>
impl Default for DescriptorSetLayoutBinding<'_>
Source§fn default() -> DescriptorSetLayoutBinding<'_>
fn default() -> DescriptorSetLayoutBinding<'_>
Returns the “default value” for a type. Read more
impl<'a> Copy for DescriptorSetLayoutBinding<'a>
impl Send for DescriptorSetLayoutBinding<'_>
impl Sync for DescriptorSetLayoutBinding<'_>
Auto Trait Implementations§
impl<'a> Freeze for DescriptorSetLayoutBinding<'a>
impl<'a> RefUnwindSafe for DescriptorSetLayoutBinding<'a>
impl<'a> Unpin for DescriptorSetLayoutBinding<'a>
impl<'a> UnwindSafe for DescriptorSetLayoutBinding<'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