pub struct DescriptorSetLayoutBinding {
pub binding: u32,
pub descriptor_type: DescriptorType,
pub descriptor_count: u32,
pub stage_flags: ShaderStageFlags,
pub immutable_samplers: Vec<Arc<Sampler>>,
}Expand description
Note: default values are nothing!
Fields§
§binding: u32§descriptor_type: DescriptorType§descriptor_count: u32§stage_flags: ShaderStageFlags§immutable_samplers: Vec<Arc<Sampler>>Implementations§
Source§impl DescriptorSetLayoutBinding
impl DescriptorSetLayoutBinding
pub fn vk_immutable_samplers(&self) -> Vec<Sampler>
Sourcepub fn from_vk_binding(value: &DescriptorSetLayoutBinding) -> Self
pub fn from_vk_binding(value: &DescriptorSetLayoutBinding) -> Self
Note: leaves immutable_samplers empty because the create info only provides the handles.
pub fn write_vk_binding_builder<'a>( &self, builder: DescriptorSetLayoutBindingBuilder<'a>, vk_immutable_samplers: &'a [Sampler], ) -> DescriptorSetLayoutBindingBuilder<'a>
pub fn from_vk_binding_builder( value: &DescriptorSetLayoutBindingBuilder<'_>, ) -> Self
Trait Implementations§
Source§impl Clone for DescriptorSetLayoutBinding
impl Clone for DescriptorSetLayoutBinding
Source§fn clone(&self) -> DescriptorSetLayoutBinding
fn clone(&self) -> DescriptorSetLayoutBinding
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 moreSource§impl Default for DescriptorSetLayoutBinding
impl Default for DescriptorSetLayoutBinding
Source§fn default() -> DescriptorSetLayoutBinding
fn default() -> DescriptorSetLayoutBinding
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DescriptorSetLayoutBinding
impl RefUnwindSafe for DescriptorSetLayoutBinding
impl Send for DescriptorSetLayoutBinding
impl Sync for DescriptorSetLayoutBinding
impl Unpin for DescriptorSetLayoutBinding
impl UnwindSafe for DescriptorSetLayoutBinding
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