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

Pipeline depth/stencil state. More...

#include <pipeline-depth-stencil-state.hpp>

Public Attributes

bool depth_test_enabled {true}
 true if depth testing is enabled, false otherwise. More...
 
bool depth_write_enabled {true}
 true if depth writes are enabled when depth testing is enabled, false otherwise. More...
 
compare_op depth_compare_op {compare_op::less}
 Comparison operator to use in the depth comparison step of the depth test. More...
 
bool stencil_test_enabled {false}
 true if stencil testing is enabled, false otherwise. More...
 
stencil_op_state stencil_front
 Stencil testing parameters for front faces. More...
 
stencil_op_state stencil_back
 Stencil testing parameters for back faces. More...
 

Detailed Description

Pipeline depth/stencil state.

Definition at line 30 of file pipeline-depth-stencil-state.hpp.

Member Data Documentation

◆ depth_compare_op

compare_op gl::pipeline_depth_stencil_state::depth_compare_op {compare_op::less}

Comparison operator to use in the depth comparison step of the depth test.

Definition at line 43 of file pipeline-depth-stencil-state.hpp.

◆ depth_test_enabled

bool gl::pipeline_depth_stencil_state::depth_test_enabled {true}

true if depth testing is enabled, false otherwise.

Definition at line 33 of file pipeline-depth-stencil-state.hpp.

◆ depth_write_enabled

bool gl::pipeline_depth_stencil_state::depth_write_enabled {true}

true if depth writes are enabled when depth testing is enabled, false otherwise.

Note
Depth writes are always disabled when depth testing is disabled.

Definition at line 40 of file pipeline-depth-stencil-state.hpp.

◆ stencil_back

stencil_op_state gl::pipeline_depth_stencil_state::stencil_back

Stencil testing parameters for back faces.

Definition at line 52 of file pipeline-depth-stencil-state.hpp.

◆ stencil_front

stencil_op_state gl::pipeline_depth_stencil_state::stencil_front

Stencil testing parameters for front faces.

Definition at line 49 of file pipeline-depth-stencil-state.hpp.

◆ stencil_test_enabled

bool gl::pipeline_depth_stencil_state::stencil_test_enabled {false}

true if stencil testing is enabled, false otherwise.

Definition at line 46 of file pipeline-depth-stencil-state.hpp.


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