31 #include "graphic_context.h"
35 class DepthStencilStateDescription_Impl;
47 void stencil_write_mask(
unsigned char &out_front_facing_mask,
unsigned char &out_back_facing_mask)
const;
94 std::shared_ptr<DepthStencilStateDescription_Impl> impl;
void set_stencil_write_mask(unsigned char front_facing_mask, unsigned char back_facing_mask)
Set stencil write masks.
DepthStencilStateDescription()
void set_stencil_op_back(StencilOp fail_back, StencilOp pass_depth_fail_back, StencilOp pass_depth_pass_back)
Set stencil operations.
bool is_stencil_test_enabled() const
CompareFunction
Compare functions.
Definition: graphic_context.h:95
void stencil_op_back(StencilOp &out_fail_back, StencilOp &out_pass_depth_fail_back, StencilOp &out_pass_depth_pass_back) const
bool operator==(const DepthStencilStateDescription &other) const
void set_stencil_op_front(StencilOp fail_front, StencilOp pass_depth_fail_front, StencilOp pass_depth_pass_front)
Set stencil operations.
DepthStencilStateDescription clone() const
void enable_depth_write(bool enabled)
Enables/disables depth writing.
void stencil_compare_front(CompareFunction &out_front, int &out_front_ref, int &out_front_mask) const
void enable_depth_test(bool enabled)
Enables/disables depth testing.
void stencil_compare_back(CompareFunction &out_back, int &out_back_ref, int &out_back_mask) const
void set_stencil_compare_back(CompareFunction back, int back_ref, int back_mask)
Set stencil compare function.
void enable_stencil_test(bool enabled)
Enables/disables stencil testing.
bool operator<(const DepthStencilStateDescription &other) const
bool is_depth_write_enabled() const
void stencil_write_mask(unsigned char &out_front_facing_mask, unsigned char &out_back_facing_mask) const
DepthStencil state description.
Definition: depth_stencil_state_description.h:38
bool is_depth_test_enabled() const
void set_stencil_compare_front(CompareFunction front, int front_ref, int front_mask)
Set stencil compare function.
void set_depth_compare_function(CompareFunction func)
Set depth test function.
void stencil_op_front(StencilOp &out_fail_front, StencilOp &out_pass_depth_fail_front, StencilOp &out_pass_depth_pass_front) const
Definition: Application/application.h:35
StencilOp
Stencil operations.
Definition: graphic_context.h:108
CompareFunction depth_compare_function() const