|
Blender V4.3
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::draw |
Functions | |
| ENUM_OPERATORS (DRWState, DRW_STATE_PROGRAM_POINT_SIZE) | |
DRWState to GPU state conversion | |
| static eGPUWriteMask | blender::draw::to_write_mask (DRWState state) |
| static eGPUFaceCullTest | blender::draw::to_face_cull_test (DRWState state) |
| static eGPUDepthTest | blender::draw::to_depth_test (DRWState state) |
| static eGPUStencilOp | blender::draw::to_stencil_op (DRWState state) |
| static eGPUStencilTest | blender::draw::to_stencil_test (DRWState state) |
| static eGPUBlend | blender::draw::to_blend (DRWState state) |
| static eGPUProvokingVertex | blender::draw::to_provoking_vertex (DRWState state) |
Internal Pipeline State tracking. It is higher level than GPU state as everything fits a single enum.
Definition in file draw_state.hh.
| #define DRW_STATE_BLEND_ENABLED |
Definition at line 79 of file draw_state.hh.
Referenced by drw_state_set(), and blender::draw::to_blend().
| #define DRW_STATE_DEFAULT (DRW_STATE_WRITE_DEPTH | DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_LESS_EQUAL) |
Definition at line 77 of file draw_state.hh.
Referenced by drw_draw_pass_ex(), DRW_state_reset(), and select_cache_init().
| #define DRW_STATE_DEPTH_TEST_ENABLED |
Definition at line 86 of file draw_state.hh.
Referenced by DRW_draw_select_loop(), DRW_state_lock(), drw_state_set(), drw_state_validate(), and blender::draw::to_depth_test().
| #define DRW_STATE_RASTERIZER_ENABLED |
| #define DRW_STATE_STENCIL_TEST_ENABLED (DRW_STATE_STENCIL_ALWAYS | DRW_STATE_STENCIL_EQUAL | DRW_STATE_STENCIL_NEQUAL) |
Definition at line 89 of file draw_state.hh.
Referenced by drw_state_set(), drw_state_validate(), and blender::draw::to_stencil_test().
| #define DRW_STATE_WRITE_STENCIL_ENABLED |
Definition at line 91 of file draw_state.hh.
Referenced by drw_state_set(), drw_state_validate(), blender::draw::to_stencil_op(), and blender::draw::to_write_mask().
| enum DRWState |
DRWState is a bit-mask that stores the current render state and the desired render state. Based on the differences the minimum state changes can be invoked to setup the desired render state.
The Write Stencil, Stencil test, Depth test and Blend state options are mutual exclusive therefore they aren't ordered as a bit mask.
Definition at line 25 of file draw_state.hh.
| ENUM_OPERATORS | ( | DRWState | , |
| DRW_STATE_PROGRAM_POINT_SIZE | ) |