pub struct UnsafeDescriptorSetLayout { /* private fields */ }
Expand description

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

Despite its name, this type is technically not unsafe. However it serves the same purpose in the API as other types whose names start with Unsafe. Using the same naming scheme avoids confusions.

Implementations

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

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.
The DebugReportObjectTypeEXT of the internal Vulkan handle.
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.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.