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_GPUDepthStencilState - A structure specifying the parameters of the graphics pipeline depth stencil

Availability

       This struct is available since SDL 3.2.0.

Name

       SDL_GPUDepthStencilState  -  A structure specifying the parameters of the graphics pipeline depth stencil
       state.

See Also

SDL_GPUGraphicsPipelineCreateInfo(3type)

Simple Directmedia Layer                           SDL 3.2.20                    SDL_GPUDepthStencilState(3type)

Synopsis

#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUDepthStencilState{SDL_GPUCompareOpcompare_op;/**<Thecomparisonoperatorusedfordepthtesting.*/SDL_GPUStencilOpStateback_stencil_state;/**<Thestencilopstateforback-facingtriangles.*/SDL_GPUStencilOpStatefront_stencil_state;/**<Thestencilopstateforfront-facingtriangles.*/Uint8compare_mask;/**<Selectsthebitsofthestencilvaluesparticipatinginthestenciltest.*/Uint8write_mask;/**<Selectsthebitsofthestencilvaluesupdatedbythestenciltest.*/boolenable_depth_test;/**<trueenablesthedepthtest.*/boolenable_depth_write;/**<trueenablesdepthwrites.Depthwritesarealwaysdisabledwhenenable_depth_testisfalse.*/boolenable_stencil_test;/**<trueenablesthestenciltest.*/Uint8padding1;Uint8padding2;Uint8padding3;}SDL_GPUDepthStencilState;

See Also