logo
pub struct CommandBufferState<'a> { /* private fields */ }
Expand description

Allows you to retrieve the current state of a command buffer builder.

Implementations

Returns the descriptor set currently bound to a given set number, or None if nothing has been bound yet.

Returns the pipeline layout that describes all currently bound descriptor sets.

This can be the layout used to perform the last bind operation, but it can also be the layout of an earlier bind if it was compatible with more recent binds.

Returns the index buffer currently bound, or None if nothing has been bound yet.

Returns the compute pipeline currently bound, or None if nothing has been bound yet.

Returns the graphics pipeline currently bound, or None if nothing has been bound yet.

Returns the vertex buffer currently bound to a given binding slot number, or None if nothing has been bound yet.

Returns a set containing push constant bytes that have been set.

Returns the pipeline layout that describes the current push constants.

This is the layout used to perform the last push constant write operation.

Returns the current blend constants, or None if nothing has been set yet.

Returns the current color write enable settings, or None if nothing has been set yet.

Returns the current cull mode, or None if nothing has been set yet.

Returns the current depth bias settings, or None if nothing has been set yet.

Returns whether depth bias is enabled, or None if nothing has been set yet.

Returns the current depth bounds settings, or None if nothing has been set yet.

Returns whether depth bound testing is enabled, or None if nothing has been set yet.

Returns the current depth compare op, or None if nothing has been set yet.

Returns whether depth testing is enabled, or None if nothing has been set yet.

Returns whether depth write is enabled, or None if nothing has been set yet.

Returns the current discard rectangles, or None if nothing has been set yet.

Returns the current front face, or None if nothing has been set yet.

Returns the current line stipple settings, or None if nothing has been set yet.

Returns the current line width, or None if nothing has been set yet.

Returns the current logic op, or None if nothing has been set yet.

Returns the current number of patch control points, or None if nothing has been set yet.

Returns whether primitive restart is enabled, or None if nothing has been set yet.

Returns the current primitive topology, or None if nothing has been set yet.

Returns whether rasterizer discard is enabled, or None if nothing has been set yet.

Returns the current scissor for a given viewport slot, or None if nothing has been set yet.

Returns the current viewport-with-count settings, or None if nothing has been set yet.

Returns the current stencil compare masks.

Returns the current stencil ops.

Returns the current stencil references.

Returns whether stencil testing is enabled, or None if nothing has been set yet.

Returns the current stencil write masks.

Returns the current viewport for a given viewport slot, or None if nothing has been set yet.

Returns the current viewport-with-count settings, or None if nothing has been set yet.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.