pub struct PersistentDescriptorSetBuilder<L, R> { /* private fields */ }
Expand description

Prototype of a PersistentDescriptorSet.

The template parameter L is the pipeline layout to use, and the template parameter R is an unspecified type that represents the list of resources.

See the docs of PersistentDescriptorSet for an example.

Implementations

Builds a PersistentDescriptorSet from the builder.

Builds a PersistentDescriptorSet from the builder.

Panic

Panics if the pool doesn’t have the same device as the pipeline layout.

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

Returns an error if the descriptor is empty.

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.

Skips the current descriptor if it is empty.

Binds a buffer as the next descriptor.

An error is returned if the buffer isn’t compatible with the descriptor.

Panic

Panics if the buffer doesn’t have the same device as the pipeline layout.

Binds a buffer view as the next descriptor.

An error is returned if the buffer isn’t compatible with the descriptor.

Panic

Panics if the buffer view doesn’t have the same device as the pipeline layout.

Binds an image view as the next descriptor.

An error is returned if the image view isn’t compatible with the descriptor.

Panic

Panics if the image view doesn’t have the same device as the pipeline layout.

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

An error is returned if the image view isn’t compatible with the descriptor.

Panic

Panics if the image view or the sampler doesn’t have the same device as the pipeline layout.

Binds a sampler as the next descriptor.

An error is returned if the sampler isn’t compatible with the descriptor.

Panic

Panics if the sampler doesn’t have the same device as the pipeline layout.

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.