pub struct RenderState { /* private fields */ }
Expand description

GPU render state.

You can get a default value with RenderState::default and set the operations you want with the various RenderState::set_* methods.

Implementations

Override the blending configuration.

Override the blending configuration using separate blending.

Blending configuration.

Override the depth test configuration.

Depth test configuration.

Override the depth write configuration.

Depth write configuration.

Override the stencil test configuration.

Stencil test configuration.

Override the stencil operations.

Stencil test operations.

Override the face culling configuration.

Face culling configuration.

Override the scissor configuration.

Get the scissor configuration.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The default RenderState.

  • blending: None
  • depth_test: Some(Comparison::Less)
  • depth_write: Write::On
  • stencil_test: None
  • stencil_operations: StencilOperations::default()
  • face_culling: None
  • ’scissor_region: None`

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.