Struct vulkano::descriptor_set::layout::DescriptorSetDesc [−][src]
pub struct DescriptorSetDesc { /* fields omitted */ }
Implementations
pub fn new<I>(descriptors: I) -> DescriptorSetDesc where
I: IntoIterator<Item = Option<DescriptorDesc>>,
pub fn new<I>(descriptors: I) -> DescriptorSetDesc where
I: IntoIterator<Item = Option<DescriptorDesc>>,
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.
Builds a new empty DescriptorSetDesc
.
Returns the descriptor with the given binding number, or None
if the binding is empty.
pub fn union(
first: &DescriptorSetDesc,
second: &DescriptorSetDesc
) -> Result<DescriptorSetDesc, ()>
pub fn union(
first: &DescriptorSetDesc,
second: &DescriptorSetDesc
) -> Result<DescriptorSetDesc, ()>
Builds the union of this layout description and another.
pub fn union_multiple(
first: &[DescriptorSetDesc],
second: &[DescriptorSetDesc]
) -> Result<Vec<DescriptorSetDesc>, ()>
pub fn union_multiple(
first: &[DescriptorSetDesc],
second: &[DescriptorSetDesc]
) -> Result<Vec<DescriptorSetDesc>, ()>
Builds the union of multiple descriptor sets.
Changes a buffer descriptor’s type to dynamic.
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 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.
pub fn ensure_compatible_with_shader(
&self,
other: &DescriptorSetDesc
) -> Result<(), DescriptorSetCompatibilityError>
pub fn ensure_compatible_with_shader(
&self,
other: &DescriptorSetDesc
) -> Result<(), DescriptorSetCompatibilityError>
Checks whether the descriptor of a pipeline layout self
is compatible with the descriptor
of a shader other
.
pub fn ensure_compatible_with_bind(
&self,
other: &DescriptorSetDesc
) -> Result<(), DescriptorSetCompatibilityError>
pub fn ensure_compatible_with_bind(
&self,
other: &DescriptorSetDesc
) -> Result<(), DescriptorSetCompatibilityError>
Checks whether the descriptor of a pipeline layout self
is compatible with the descriptor
of a descriptor set being bound other
.
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.