Expand description
Fixed-function hardware state.
Configures the primitive assembly (PA), rasterizer, and output merger (OM) blocks.
Structs§
- Blend
- Blend
Channel - Color
- The state of an active color render target
- Color
Mask - Depth
- Depth test state.
- Multi
Sample - Multi-sampling rasterization mode
- Offset
- How to offset vertices in screen space, if at all.
- Rasterizer
- Primitive rasterization state. Note that GL allows different raster method to be used for front and back, while this abstraction does not.
- RefValues
- The complete set of the rasterizer reference values. Switching these doesn’t roll the hardware context.
- Stencil
- Complete stencil state, specifying how to handle the front and back side of a face.
- Stencil
Side - Complete stencil state for a given side of a face.
Enums§
- Blend
Value - Comparison
- A pixel-wise comparison function.
- Cull
Face - Which face, if any, to cull.
- Equation
- Factor
- Front
Face - The front face winding order of a set of vertices.
- Raster
Method - How to rasterize a primitive.
- Stencil
Op - Stencil mask operation.
Type Aliases§
- Line
Width - Width of a line. Could be f32 if not for Hash deriving issues.
- Offset
Slope - Slope depth offset factor Could be f32 if not for Hash deriving issues.
- Offset
Units - Number of units to offset, where the unit is the minimal difference in the depth value dictated by the precision of the depth buffer.