Module gfx::state

source ·
Expand description

Fixed-function hardware state.

Configures the primitive assembly (PA), rasterizer, and output merger (OM) blocks.

Structs

  • The state of an active color render target
  • Depth test state.
  • Multi-sampling rasterization mode
  • How to offset vertices in screen space, if at all.
  • Primitive rasterization state. Note that GL allows different raster method to be used for front and back, while this abstraction does not.
  • The complete set of the rasterizer reference values. Switching these doesn’t roll the hardware context.
  • Complete stencil state, specifying how to handle the front and back side of a face.
  • Complete stencil state for a given side of a face.

Enums

Type Definitions

  • Width of a line. Could be f32 if not for Hash deriving issues.
  • Slope depth offset factor Could be f32 if not for Hash deriving issues.
  • Number of units to offset, where the unit is the minimal difference in the depth value dictated by the precision of the depth buffer.