SDL_SetGPUStencilReference(3)

πŸ’… SDL_SetGPUStencilReference(3) πŸ’…

okay bestie, you're in the SDL3 FUNCTIONS section and this page is all about SDL_SetGPUStencilReference(3) β€” it sets the current stencil reference value on a command buffer. lowkey does exactly what it says. periodt. ✨


🌸 NAME 🌸

SDL_SetGPUStencilReference β€” sets the current stencil reference value on a command buffer. yes, that's the whole vibe. πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_gpu.h>

void SDL_SetGPUStencilReference(
    SDL_GPURenderPass *render_pass,
    Uint8 reference);

🫢 FUNCTION PARAMETERS 🫢

  • render_pass β€” a render pass handle. it's giving "here's the pass you're working with." πŸ’«
  • reference β€” the stencil reference value to set. it's a Uint8, so keep it cute and in range. πŸŽ€

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. no cap. πŸ’…


and that's the whole page, bestie! brought to you by Simple Directmedia Layer, SDL 3.4.18 β€” no date on this one, just vibes and stencil references. SDL_SetGPUStencilReference(3) out. πŸ¦‹

πŸ“¦ where this page comes from