68 return rasterizerState;
79 struct hash<
Cogs::RasterizerState>
91 std::hash<int>()(simple) ^
102 struct equal_to<
Cogs::RasterizerState>
Encapsulates state for primitive rasterization in a state object.
Definition: RasterizerState.h:12
static RasterizerState DefaultState()
Constructs a rasterizer state initialized with the default values.
Definition: RasterizerState.h:54
bool multiSample
If multisample rasterization should be enabled. Default is true.
Definition: RasterizerState.h:34
bool scissor
Enable scissor rect.
Definition: RasterizerState.h:46
bool frontCounterClockwise
If counter clockwise polygon winding is used to specify front facing polygons. Default is false.
Definition: RasterizerState.h:31
bool noDepthClip
Clamp depth value instead of clipping against near and depth planes.
Definition: RasterizerState.h:49
CullMode cullMode
Which face culling mode to apply to primitives before rasterization.
Definition: RasterizerState.h:28
float depthBias
Depth bias to apply to depth values after initial rasterization before depth values are written.
Definition: RasterizerState.h:37
float depthBiasClamp
Value to clamp the depth bias to so that it may not go outside desired values even when applying slop...
Definition: RasterizerState.h:43
float slopeScaledDepthBias
Slope scaled depth bias value controlling the depth bias value based on the area of the polygon on sc...
Definition: RasterizerState.h:40
CullMode
Culling modes for triangle rasterization.
Definition: RasterizerState.h:15
@ None
Do not perform any face culling.
Definition: RasterizerState.h:21
@ Back
Cull back facing primitives.
Definition: RasterizerState.h:19
@ Front
Cull front facing primitives.
Definition: RasterizerState.h:17
bool wireFrame
If only wire frames should be rasterized. Default is false.
Definition: RasterizerState.h:25
bool operator()(const Cogs::RasterizerState &lhs, const Cogs::RasterizerState &rhs) const
Definition: RasterizerState.h:104
std::size_t operator()(const Cogs::RasterizerState &rs) const
Definition: RasterizerState.h:81