SDL 3.0
SDL_GPURasterizerState Struct Reference

#include <SDL_gpu.h>

Data Fields

SDL_GPUFillMode fill_mode
 
SDL_GPUCullMode cull_mode
 
SDL_GPUFrontFace front_face
 
float depth_bias_constant_factor
 
float depth_bias_clamp
 
float depth_bias_slope_factor
 
SDL_bool enable_depth_bias
 
Uint8 padding1
 
Uint8 padding2
 
Uint8 padding3
 

Detailed Description

A structure specifying the parameters of the graphics pipeline rasterizer state.

Since
This struct is available since SDL 3.0.0
See also
SDL_GPUGraphicsPipelineCreateInfo

Definition at line 1362 of file SDL_gpu.h.

Field Documentation

◆ cull_mode

SDL_GPUCullMode SDL_GPURasterizerState::cull_mode

The facing direction in which triangles will be culled.

Definition at line 1365 of file SDL_gpu.h.

◆ depth_bias_clamp

float SDL_GPURasterizerState::depth_bias_clamp

The maximum depth bias of a fragment.

Definition at line 1368 of file SDL_gpu.h.

◆ depth_bias_constant_factor

float SDL_GPURasterizerState::depth_bias_constant_factor

A scalar factor controlling the depth value added to each fragment.

Definition at line 1367 of file SDL_gpu.h.

◆ depth_bias_slope_factor

float SDL_GPURasterizerState::depth_bias_slope_factor

A scalar factor applied to a fragment's slope in depth calculations.

Definition at line 1369 of file SDL_gpu.h.

◆ enable_depth_bias

SDL_bool SDL_GPURasterizerState::enable_depth_bias

SDL_TRUE to bias fragment depth values.

Definition at line 1370 of file SDL_gpu.h.

◆ fill_mode

SDL_GPUFillMode SDL_GPURasterizerState::fill_mode

Whether polygons will be filled in or drawn as lines.

Definition at line 1364 of file SDL_gpu.h.

◆ front_face

SDL_GPUFrontFace SDL_GPURasterizerState::front_face

The vertex winding that will cause a triangle to be determined as front-facing.

Definition at line 1366 of file SDL_gpu.h.

◆ padding1

Uint8 SDL_GPURasterizerState::padding1

Definition at line 1371 of file SDL_gpu.h.

◆ padding2

Uint8 SDL_GPURasterizerState::padding2

Definition at line 1372 of file SDL_gpu.h.

◆ padding3

Uint8 SDL_GPURasterizerState::padding3

Definition at line 1373 of file SDL_gpu.h.


The documentation for this struct was generated from the following file: