Antkeeper  0.0.1
Public Attributes | List of all members
gl::stencil_op_state Struct Reference

Stencil operation state. More...

#include <stencil-op-state.hpp>

Public Attributes

stencil_op fail_op {stencil_op::keep}
 Action performed on samples that fail the stencil test. More...
 
stencil_op pass_op {stencil_op::keep}
 Action performed on samples that pass both the depth and stencil tests. More...
 
stencil_op depth_fail_op {stencil_op::keep}
 Action performed on samples that pass the stencil test and fail the depth test. More...
 
gl::compare_op compare_op {gl::compare_op::always}
 Comparison operator used in the stencil test. More...
 
std::uint32_t compare_mask {0xffffffff}
 Bits of the unsigned integer stencil values participating in the stencil test. More...
 
std::uint32_t write_mask {0xffffffff}
 Bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment. More...
 
std::uint32_t reference {0}
 Stencil reference value that is used in the unsigned stencil comparison. More...
 

Detailed Description

Stencil operation state.

Definition at line 30 of file stencil-op-state.hpp.

Member Data Documentation

◆ compare_mask

std::uint32_t gl::stencil_op_state::compare_mask {0xffffffff}

Bits of the unsigned integer stencil values participating in the stencil test.

Definition at line 45 of file stencil-op-state.hpp.

◆ compare_op

gl::compare_op gl::stencil_op_state::compare_op {gl::compare_op::always}

Comparison operator used in the stencil test.

Definition at line 42 of file stencil-op-state.hpp.

◆ depth_fail_op

stencil_op gl::stencil_op_state::depth_fail_op {stencil_op::keep}

Action performed on samples that pass the stencil test and fail the depth test.

Definition at line 39 of file stencil-op-state.hpp.

◆ fail_op

stencil_op gl::stencil_op_state::fail_op {stencil_op::keep}

Action performed on samples that fail the stencil test.

Definition at line 33 of file stencil-op-state.hpp.

◆ pass_op

stencil_op gl::stencil_op_state::pass_op {stencil_op::keep}

Action performed on samples that pass both the depth and stencil tests.

Definition at line 36 of file stencil-op-state.hpp.

◆ reference

std::uint32_t gl::stencil_op_state::reference {0}

Stencil reference value that is used in the unsigned stencil comparison.

Definition at line 51 of file stencil-op-state.hpp.

◆ write_mask

std::uint32_t gl::stencil_op_state::write_mask {0xffffffff}

Bits of the unsigned integer stencil values updated by the stencil test in the stencil framebuffer attachment.

Definition at line 48 of file stencil-op-state.hpp.


The documentation for this struct was generated from the following file: