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,
/* private fields */
}Expand description
Native structure VkDescriptorSetLayoutBinding.
Fields§
§binding: u32Native field binding.
descriptor_type: DescriptorTypeNative field descriptorType.
descriptor_count: u32Native field descriptorCount.
stage_flags: ShaderStageFlagsNative field stageFlags.
p_immutable_samplers: *const SamplerNative field pImmutableSamplers.
Implementations§
Source§impl<'a> DescriptorSetLayoutBinding<'a>
impl<'a> DescriptorSetLayoutBinding<'a>
Sourcepub fn set_binding(self, value: u32) -> Self
pub fn set_binding(self, value: u32) -> Self
Set native field binding without native effects.
Sourcepub fn set_descriptor_type(self, value: DescriptorType) -> Self
pub fn set_descriptor_type(self, value: DescriptorType) -> Self
Set native field descriptorType without native effects.
Sourcepub fn set_descriptor_count(self, value: u32) -> Self
pub fn set_descriptor_count(self, value: u32) -> Self
Set native count descriptorCount directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
Sourcepub fn set_stage_flags(self, value: ShaderStageFlags) -> Self
pub fn set_stage_flags(self, value: ShaderStageFlags) -> Self
Set native field stageFlags without native effects.
Sourcepub fn set_immutable_samplers(
self,
value: &'a [Sampler],
) -> Result<Self, ConstructionError>
pub fn set_immutable_samplers( self, value: &'a [Sampler], ) -> Result<Self, ConstructionError>
Borrow pImmutableSamplers and set checked native count descriptorCount.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
§Errors
Returns a construction error if the length exceeds the native count width.