mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-01 12:45:56 +00:00
DB_STENCIL_CONTROL codes 10, 11, 12 and 15 (STENCIL_AND, STENCIL_OR, STENCIL_XOR, STENCIL_XNOR) combine the stored stencil value with DB_STENCILREFMASK.STENCILOPVAL, as AMD_stencil_operation_extended defines them, and threw "stencil operation N is unsupported". Each one now becomes a single Vulkan operation with the face's write mask narrowed to the bits it can change: ZERO for AND, INVERT for XOR and XNOR, REPLACE with those reference bits set for OR. A face whose other operations write other bits, OR against a compared test value bit it would set, OR with a stencil test value export, and NAND and NOR still throw. Co-Authored-By: Claude Opus 5.5 <[email protected]>