MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
stencil Directory Reference

Files

 
stencil.cpp

Detailed Description

Stencil

Stencil demonstrates the reusable mxvk::VK_Stencil helper. It draws a shader-generated mask into the stencil attachment, then fills only the masked region with a second shader pass.

Controls

  • Escape - quit

How It Works

The example disables the normal depth attachment for its custom pass, configures a stencil attachment through onConfigureDepthStencilAttachments(...), and renders the mask and content shaders through VK_Stencil.