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.

Builds a new empty DescriptorSetDesc.

Returns the descriptors in the set.

Returns the descriptor with the given binding number, or None if the binding is empty.

Builds the union of this layout description and another.

Builds the union of multiple descriptor sets.

Changes a buffer descriptor’s type to dynamic.

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.

Checks whether the descriptor of a pipeline layout self is compatible with the descriptor of a shader other.

Checks whether the descriptor of a pipeline layout self is compatible with the descriptor of a descriptor set being bound other.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

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.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.