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

A pipeline object that describes to the Vulkan implementation how it should perform compute operations.

The template parameter contains the descriptor set to use with this pipeline.

Pass an optional Arc to a PipelineCache to enable pipeline caching. The vulkan implementation will handle the PipelineCache and check if it is available. Check the documentation of the PipelineCache for more information.

Implementations

Builds a new ComputePipeline.

func is a closure that is given a mutable reference to the inferred descriptor set definitions. This can be used to make changes to the layout before it’s created, for example to add dynamic buffers or immutable samplers.

Builds a new ComputePipeline with a specific pipeline layout.

An error will be returned if the pipeline layout isn’t a superset of what the shader uses.

Same as with_pipeline_layout, but doesn’t check whether the pipeline layout is a superset of what the shader expects.

Returns the Device this compute pipeline was created with.

Returns an iterator over the descriptor requirements for this pipeline.

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
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Returns the bind point of this pipeline.
Returns the pipeline layout used in this pipeline.
Returns the number of descriptor sets actually accessed by this pipeline. This may be less than the number of sets in the pipeline layout. 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

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.