|
Blender V5.0
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::draw |
Macros | |
| #define | DRW_STATE_DEFAULT (DRW_STATE_WRITE_DEPTH | DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_LESS_EQUAL) |
| #define | DRW_STATE_BLEND_ENABLED |
| #define | DRW_STATE_RASTERIZER_ENABLED |
| #define | DRW_STATE_DEPTH_TEST_ENABLED |
| #define | DRW_STATE_STENCIL_TEST_ENABLED (DRW_STATE_STENCIL_ALWAYS | DRW_STATE_STENCIL_EQUAL | DRW_STATE_STENCIL_NEQUAL) |
| #define | DRW_STATE_WRITE_STENCIL_ENABLED |
Functions | |
| ENUM_OPERATORS (DRWState, DRW_STATE_PROGRAM_POINT_SIZE) | |
DRWState to GPU state conversion | |
| static GPUWriteMask | blender::draw::to_write_mask (DRWState state) |
| static GPUFaceCullTest | blender::draw::to_face_cull_test (DRWState state) |
| static GPUDepthTest | blender::draw::to_depth_test (DRWState state) |
| static GPUStencilOp | blender::draw::to_stencil_op (DRWState state) |
| static GPUStencilTest | blender::draw::to_stencil_test (DRWState state) |
| static GPUBlend | blender::draw::to_blend (DRWState state) |
| static GPUProvokingVertex | 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 |
| #define DRW_STATE_DEFAULT (DRW_STATE_WRITE_DEPTH | DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_LESS_EQUAL) |
Definition at line 79 of file draw_state.hh.
Referenced by blender::draw::edit_select::Instance::begin_sync().
| #define DRW_STATE_DEPTH_TEST_ENABLED |
| #define DRW_STATE_RASTERIZER_ENABLED |
Definition at line 85 of file draw_state.hh.
| #define DRW_STATE_STENCIL_TEST_ENABLED (DRW_STATE_STENCIL_ALWAYS | DRW_STATE_STENCIL_EQUAL | DRW_STATE_STENCIL_NEQUAL) |
Definition at line 91 of file draw_state.hh.
Referenced by blender::draw::to_stencil_test().
| #define DRW_STATE_WRITE_STENCIL_ENABLED |
Definition at line 93 of file draw_state.hh.
Referenced by blender::draw::to_stencil_op(), and blender::draw::to_write_mask().
| enum DRWState : uint32_t |
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 | ) |
References DRW_STATE_PROGRAM_POINT_SIZE.