Struct vulkano::descriptor_set::builder::DescriptorSetBuilder[][src]

pub struct DescriptorSetBuilder { /* fields omitted */ }
Expand description

A builder for constructing a new descriptor set.

Implementations

Starts the process of building a descriptor set. Returns a builder.

Panic
  • Panics if the set id is out of range.

Finalizes the building process and returns the generated output.

Call this function if the next element of the set is an array in order to set the value of each element.

This function can be called even if the descriptor isn’t an array, and it is valid to enter the “array”, add one element, then leave.

Leaves the array. Call this once you added all the elements of the array.

Skips the current descriptor if it is empty.

Binds a buffer as the next descriptor or array element.

Binds a buffer view as the next descriptor or array element.

Binds an image view as the next descriptor or array element.

Binds an image view with a sampler as the next descriptor or array element.

If the descriptor set layout contains immutable samplers for this descriptor, use add_image instead.

Binds a sampler as the next descriptor or array element.

Trait Implementations

Returns the device that owns Self.

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.