pub struct GraphicsPipeline<VertexDefinition, Layout, RenderP> { /* private fields */ }
Expand description

Defines how the implementation should perform a draw operation.

This object contains the shaders and the various fixed states that describe how the implementation should perform the various operations needed by a draw command.

Implementations

Starts the building process of a graphics pipeline. Returns a builder object that you can fill with the various parameters.

Returns the vertex definition used in the constructor.

Returns the device used to create this pipeline.

Returns the pipeline layout used in the constructor.

Returns the pass used in the constructor.

Returns the render pass used in the constructor.

Returns true if the line width used by this pipeline is dynamic.

Returns the number of viewports and scissors of this pipeline.

Returns true if the viewports used by this pipeline are dynamic.

Returns true if the scissors used by this pipeline are dynamic.

Returns true if the depth bounds used by this pipeline are dynamic.

Returns true if the stencil compare masks used by this pipeline are dynamic.

Returns true if the stencil write masks used by this pipeline are dynamic.

Returns true if the stencil references used by this pipeline are dynamic.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the device that owns Self.
Returns an opaque object that represents the inside of the graphics pipeline.
Returns the index of the subpass this graphics pipeline is rendering to.
Returns true if the line width used by this pipeline is dynamic.
Returns the number of viewports and scissors of this pipeline.
Returns true if the viewports used by this pipeline are dynamic.
Returns true if the scissors used by this pipeline are dynamic.
Returns true if the depth bounds used by this pipeline are dynamic.
Returns true if the stencil compare masks used by this pipeline are dynamic.
Returns true if the stencil write masks used by this pipeline are dynamic.
Returns true if the stencil references used by this pipeline are dynamic.
Returns the subpass this graphics pipeline is rendering to.
Returns an opaque object that allows internal access to the pipeline layout. Read more
Returns the UnsafeDescriptorSetLayout object of the specified set index. Read more
Returns the number of sets in the layout. Includes possibly empty sets. Read more
Returns the number of descriptors in the set. Includes possibly empty descriptors. Read more
Returns the descriptor for the given binding of the given set. Read more
Returns the number of push constant ranges of the layout.
Returns a description of the given push constants range. Read more
If the PipelineLayoutDesc implementation is able to provide an existing UnsafeDescriptorSetLayout for a given set, it can do so by returning it here. Read more
Builds the union of this layout and another.
Checks whether this description fulfills the device limits requirements.
Turns the layout description into a PipelineLayout object that can be used by Vulkan. Read more
Returns an opaque object representing the render pass’ internals. Read more
Returns the number of attachments of the render pass.
Returns the description of an attachment. Read more
Returns the number of subpasses of the render pass.
Returns the description of a subpass. Read more
Returns the number of dependencies of the render pass.
Returns the description of a dependency. Read more
Returns an iterator to the list of attachments.
Returns an iterator to the list of subpasses.
Returns an iterator to the list of dependencies.
Returns true if this render pass is compatible with another render pass. Read more
Builds a render pass from this description. Read more
Returns the number of color attachments of a subpass. Returns None if out of range.
Returns the number of samples of the attachments of a subpass. Returns None if out of range or if the subpass has no attachment. TODO: return an enum instead? Read more
Returns a tuple whose first element is true if there’s a depth attachment, and whose second element is true if there’s a stencil attachment. Returns None if out of range. Read more
Returns true if a subpass has a depth attachment or a depth-stencil attachment.
Returns true if a subpass has a depth attachment or a depth-stencil attachment whose layout is not DepthStencilReadOnlyOptimal. Read more
Returns true if a subpass has a stencil attachment or a depth-stencil attachment.
Returns true if a subpass has a stencil attachment or a depth-stencil attachment whose layout is not DepthStencilReadOnlyOptimal. Read more
Decodes a C into a list of clear values where each element corresponds to an attachment. The size of the returned iterator must be the same as the number of attachments. Read more
Iterator that returns the offset, the stride (in bytes) and input rate of each buffer.
Iterator that returns the attribute location, buffer id, and infos.
Builds the vertex definition to use to link this definition to a vertex shader’s input interface. Read more
Checks and returns the list of buffers with offsets, number of vertices and number of instances.
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.