Struct RasterizerState

Struct Documentation

struct RasterizerState

API agnostic struct to represent Rasterization state.

Public Members

api_types::FillMode fillMode = {api_types::GPA_FILL_UNKNOWN}

Determines the fill mode to use when rendering.

api_types::CullMode cullMode = {api_types::GPA_CULL_UNKNOWN}

Indicates triangles facing the specified direction are not drawn.

bool frontCounterClockwise = {false}

Determines if a triangle is front- or back-facing. If this parameter is TRUE, a triangle will be considered front-facing if its vertices are counter-clockwise on the render target and considered back-facing if they are clockwise. If this parameter is FALSE, the opposite is true.

int32_t depthBias = {0}

Depth value added to a given pixel.

float depthBiasClamp = {0}

Maximum depth bias of a pixel.

float slopeScaledDepthBias = {0}

Scalar on a given pixel's slope.

bool depthClipEnable = {false}

Enable clipping based on distance.

bool scissorEnable = {false}

Scissor-rectangle culling is enabled.

bool multisampleEnable = {false}

Multisampling is enabled.

bool antialiasedLineEnable = {false}

Antialiasing is enabled when drawing lines.