SDL_GPUStencilOpState(3type)
π SDL_GPUStencilOpState π
okay so bestie, welcome to the SDL3 DATATYPES corner of the manual, where we talk about SDL_GPUStencilOpState β a structure specifying the stencil operation state of a graphics pipeline. yes it's a mouthful, no you don't have to say it out loud at parties. β¨
πΈ NAME πΈ
SDL_GPUStencilOpState β a structure specifying the stencil operation state of a graphics pipeline.
like, it's the lil bundle of vibes that tells your pipeline what to do with stencil samples depending on whether they passed or flopped the tests. it's giving gatekeeper energy but for pixels. π
β¨ SYNOPSIS β¨
first things first, you gotta pull it in:
#include <SDL3/SDL_gpu.h>
and here's the whole struct, look at her π
typedef struct SDL_GPUStencilOpState
{
SDL_GPUStencilOp fail_op; /**< The action performed on samples that fail the stencil test. */
SDL_GPUStencilOp pass_op; /**< The action performed on samples that pass the depth and stencil tests. */
SDL_GPUStencilOp depth_fail_op; /**< The action performed on samples that pass the stencil test and fail the depth test. */
SDL_GPUCompareOp compare_op; /**< The comparison operator used in the stencil test. */
} SDL_GPUStencilOpState;
π¦ the fields, one by one π¦
fail_opβ the action performed on samples that fail the stencil test. rip to them honestly. πpass_opβ the action performed on samples that pass the depth and stencil tests. main character behavior fr fr, they ate and left no crumbs. πdepth_fail_opβ the action performed on samples that pass the stencil test but fail the depth test. so close bestie, so close πcompare_opβ the comparison operator used in the stencil test. this is the vibe check itself. π
ngl, all four of these are required if you're filling this struct out β there's no "just leave it blank" energy here. fill in every field. periodt. π
π AVAILABILITY π
this struct is available since SDL 3.2.0. so if you're on anything older, bestieβ¦ she's not there yet. π
π SEE ALSO π
SDL_GPUDepthStencilState(3type)β her sister struct, they run together, iykyk π«Ά
that's the whole page!! go forth and configure your stencil state, you gorgeous genius π§π
π this was brought to you by the Simple Directmedia Layer girlies, straight out of SDL 3.4.18. mwah, bye bestie!! π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms