Struct vulkano::descriptor_set::layout::DescriptorSetDesc [−][src]
pub struct DescriptorSetDesc { /* fields omitted */ }
Implementations
Builds a new DescriptorSetDesc
with the given descriptors.
The descriptors must be passed in the order of the bindings. In order words, descriptor
at bind point 0 first, then descriptor at bind point 1, and so on. If a binding must remain
empty, you can make the iterator yield None
for an element.
pub fn from_requirements<'a>(
descriptor_requirements: impl IntoIterator<Item = ((u32, u32), &'a DescriptorRequirements)>
) -> Vec<Self>
pub fn from_requirements<'a>(
descriptor_requirements: impl IntoIterator<Item = ((u32, u32), &'a DescriptorRequirements)>
) -> Vec<Self>
Builds a list of DescriptorSetDesc
from an iterator of DescriptorRequirement
originating
from a shader.
Builds a new empty DescriptorSetDesc
.
Returns the descriptor with the given binding number, or None
if the binding is empty.
Returns whether the description is set to be a push descriptor.
Changes a buffer descriptor’s type to dynamic.
Panics
- Panics if the description is set to be a push descriptor.
- Panics if
binding_num
does not refer to aStorageBuffer
orUniformBuffer
descriptor.
pub fn set_immutable_samplers(
&mut self,
binding_num: u32,
samplers: impl IntoIterator<Item = Arc<Sampler>>
)
pub fn set_immutable_samplers(
&mut self,
binding_num: u32,
samplers: impl IntoIterator<Item = Arc<Sampler>>
)
Sets the immutable samplers for a sampler or combined image sampler descriptor.
Panics
- Panics if the binding number does not refer to a sampler or combined image sampler descriptor.
Sets the descriptor set layout to use push descriptors instead of descriptor sets.
If set to enabled, the
khr_push_descriptor
extension must
be enabled on the device.
Panics
- If enabled, panics if the description contains a dynamic buffer descriptor.
Sets the descriptor count for a descriptor that has a variable count.
Returns whether self
is compatible with other
.
“Compatible” in this sense is defined by the Vulkan specification under the section “Pipeline layout compatibility”: the two must be identically defined to the Vulkan API, meaning that all descriptors are compatible and flags are identical.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DescriptorSetDesc
impl Send for DescriptorSetDesc
impl Sync for DescriptorSetDesc
impl Unpin for DescriptorSetDesc
impl UnwindSafe for DescriptorSetDesc
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.