logo
pub struct DescriptorSetLayout { /* private fields */ }
Expand description

Describes to the Vulkan implementation the layout of all descriptors within a descriptor set.

Implementations

Builds a new DescriptorSetLayout 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.

Returns the number of descriptors of each type.

If the last binding has a variable count, returns its descriptor_count. Otherwise returns 0.

Returns the number of binding slots in the set.

Returns a description of a descriptor, or None if out of range.

Returns whether self is compatible with other.

“Compatible” in this sense is defined by the Vulkan specification under the section “Pipeline layout compatibility”: either the two are the same descriptor set layout, or they must be identically defined to the Vulkan API.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the device that owns Self.

Executes the destructor for this type. Read more

The type of the object.

Returns a reference to the object.

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 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.