Overlay-Next: Initial implementation #107045

Closed
Clément Foucault wants to merge 28 commits from fclem/blender:overlay-next into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 8 additions and 2 deletions
Showing only changes of commit 2538c3b1a2 - Show all commits

View File

@ -174,9 +174,15 @@ class PassBase {
/**
* Reminders:
* - (compare_mask & reference) is what is tested against (compare_mask & stencil_value)
* - `compare_mask & reference` is what is tested against `compare_mask & stencil_value`
* stencil_value being the value stored in the stencil buffer.
* - (write-mask & reference) is what gets written if the test condition is fulfilled.
* - `write-mask & reference` is what gets written if the test condition is fulfilled.
*
* This will modify the stencil state until another call to this function.
* If not specified before any draw-call, these states will be undefined.
*
* For more information see:
* https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkStencilOpState.html
*/
void state_stencil(uint8_t write_mask, uint8_t reference, uint8_t compare_mask);