logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This struct is available since SDL 3.2.0.

Description

       Note that SDL_GPU_FILLMODE_LINE
        is  not supported on many Android devices. For those devices, the fill mode will automatically fall back
       to FILL.

       Also note that the D3D12 driver will enable depth clamping even if enable_depth_clip is true. If you need
       this clamp+clip behavior, consider enabling depth clip and then manually clamping depth in your  fragment
       shaders on Metal and Vulkan.

Header File

       Defined in SDL3/SDL_gpu.h

Name

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

See Also

(3), SDL_GPUGraphicsPipelineCreateInfo(3type)

Simple Directmedia Layer                           SDL 3.2.10                      SDL_GPURasterizerState(3type)

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_GPURasterizerState{SDL_GPUFillModefill_mode;/**<Whetherpolygonswillbefilledinordrawnaslines.*/SDL_GPUCullModecull_mode;/**<Thefacingdirectioninwhichtriangleswillbeculled.*/SDL_GPUFrontFacefront_face;/**<Thevertexwindingthatwillcauseatriangletobedeterminedasfront-facing.*/floatdepth_bias_constant_factor;/**<Ascalarfactorcontrollingthedepthvalueaddedtoeachfragment.*/floatdepth_bias_clamp;/**<Themaximumdepthbiasofafragment.*/floatdepth_bias_slope_factor;/**<Ascalarfactorappliedtoafragment'sslopeindepthcalculations.*/boolenable_depth_bias;/**<truetobiasfragmentdepthvalues.*/boolenable_depth_clip;/**<truetoenabledepthclip,falsetoenabledepthclamp.*/Uint8padding1;Uint8padding2;}SDL_GPURasterizerState;

See Also