Blender V5.0
blender::gpu::MTLContextDepthStencilState Struct Reference

#include <mtl_context.hh>

Public Member Functions

bool operator== (const MTLContextDepthStencilState &other) const
std::size_t hash () const

Public Attributes

bool depth_write_enable
bool depth_test_enabled
float depth_range_near
float depth_range_far
MTLCompareFunction depth_function
float depth_bias
float depth_slope_scale
bool depth_bias_enabled_for_points
bool depth_bias_enabled_for_lines
bool depth_bias_enabled_for_tris
bool stencil_test_enabled
uint stencil_read_mask
uint stencil_write_mask
uint stencil_ref
MTLCompareFunction stencil_func
MTLStencilOperation stencil_op_front_stencil_fail
MTLStencilOperation stencil_op_front_depth_fail
MTLStencilOperation stencil_op_front_depthstencil_pass
MTLStencilOperation stencil_op_back_stencil_fail
MTLStencilOperation stencil_op_back_depth_fail
MTLStencilOperation stencil_op_back_depthstencil_pass
bool has_depth_target
bool has_stencil_target

Detailed Description

Definition at line 186 of file mtl_context.hh.

Member Function Documentation

◆ hash()

std::size_t blender::gpu::MTLContextDepthStencilState::hash ( ) const
inline

Definition at line 256 of file mtl_context.hh.

◆ operator==()

Member Data Documentation

◆ depth_bias

float blender::gpu::MTLContextDepthStencilState::depth_bias

Definition at line 194 of file mtl_context.hh.

◆ depth_bias_enabled_for_lines

bool blender::gpu::MTLContextDepthStencilState::depth_bias_enabled_for_lines

Definition at line 197 of file mtl_context.hh.

◆ depth_bias_enabled_for_points

bool blender::gpu::MTLContextDepthStencilState::depth_bias_enabled_for_points

Definition at line 196 of file mtl_context.hh.

◆ depth_bias_enabled_for_tris

bool blender::gpu::MTLContextDepthStencilState::depth_bias_enabled_for_tris

Definition at line 198 of file mtl_context.hh.

◆ depth_function

MTLCompareFunction blender::gpu::MTLContextDepthStencilState::depth_function

Definition at line 193 of file mtl_context.hh.

Referenced by operator==().

◆ depth_range_far

float blender::gpu::MTLContextDepthStencilState::depth_range_far

Definition at line 192 of file mtl_context.hh.

◆ depth_range_near

float blender::gpu::MTLContextDepthStencilState::depth_range_near

Definition at line 191 of file mtl_context.hh.

◆ depth_slope_scale

float blender::gpu::MTLContextDepthStencilState::depth_slope_scale

Definition at line 195 of file mtl_context.hh.

◆ depth_test_enabled

bool blender::gpu::MTLContextDepthStencilState::depth_test_enabled

Definition at line 190 of file mtl_context.hh.

Referenced by operator==().

◆ depth_write_enable

bool blender::gpu::MTLContextDepthStencilState::depth_write_enable

Definition at line 189 of file mtl_context.hh.

Referenced by operator==().

◆ has_depth_target

bool blender::gpu::MTLContextDepthStencilState::has_depth_target

Definition at line 217 of file mtl_context.hh.

Referenced by operator==().

◆ has_stencil_target

bool blender::gpu::MTLContextDepthStencilState::has_stencil_target

Definition at line 218 of file mtl_context.hh.

Referenced by operator==().

◆ stencil_func

MTLCompareFunction blender::gpu::MTLContextDepthStencilState::stencil_func

Definition at line 205 of file mtl_context.hh.

Referenced by operator==().

◆ stencil_op_back_depth_fail

MTLStencilOperation blender::gpu::MTLContextDepthStencilState::stencil_op_back_depth_fail

Definition at line 212 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate(), and operator==().

◆ stencil_op_back_depthstencil_pass

MTLStencilOperation blender::gpu::MTLContextDepthStencilState::stencil_op_back_depthstencil_pass

Definition at line 213 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate(), and operator==().

◆ stencil_op_back_stencil_fail

MTLStencilOperation blender::gpu::MTLContextDepthStencilState::stencil_op_back_stencil_fail

Definition at line 211 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate(), and operator==().

◆ stencil_op_front_depth_fail

MTLStencilOperation blender::gpu::MTLContextDepthStencilState::stencil_op_front_depth_fail

Definition at line 208 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate(), and operator==().

◆ stencil_op_front_depthstencil_pass

MTLStencilOperation blender::gpu::MTLContextDepthStencilState::stencil_op_front_depthstencil_pass

Definition at line 209 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate(), and operator==().

◆ stencil_op_front_stencil_fail

MTLStencilOperation blender::gpu::MTLContextDepthStencilState::stencil_op_front_stencil_fail

Definition at line 207 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate(), and operator==().

◆ stencil_read_mask

uint blender::gpu::MTLContextDepthStencilState::stencil_read_mask

Definition at line 202 of file mtl_context.hh.

Referenced by operator==().

◆ stencil_ref

uint blender::gpu::MTLContextDepthStencilState::stencil_ref

Definition at line 204 of file mtl_context.hh.

◆ stencil_test_enabled

bool blender::gpu::MTLContextDepthStencilState::stencil_test_enabled

Definition at line 201 of file mtl_context.hh.

Referenced by operator==().

◆ stencil_write_mask

uint blender::gpu::MTLContextDepthStencilState::stencil_write_mask

Definition at line 203 of file mtl_context.hh.

Referenced by operator==().


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