|
Blender V5.3
|
#include <draw_command.hh>
Public Member Functions | |
| void | front_facing_set (bool facing) |
| void | cleanup () |
| const gpu::shader::SpecializationConstants * | specialization_constants_get () |
Public Attributes | |
| gpu::shader::SpecializationConstants | specialization_constants |
| bool | specialization_constants_in_use = false |
| bool | shader_use_specialization = false |
| gpu::Shader * | shader = nullptr |
| bool | front_facing = true |
| bool | inverted_view = false |
| DRWState | pipeline_state = DRW_STATE_NO_DRAW |
| int | clip_plane_count = 0 |
| int | instance_offset = 1 |
Command recording state. Keep track of several states and avoid redundant state changes.
Definition at line 49 of file draw_command.hh.
|
inline |
Definition at line 73 of file draw_command.hh.
References front_facing, blender::G, blender::G_DEBUG_GPU, blender::GPU_front_facing(), blender::GPU_storagebuf_debug_unbind_all(), blender::GPU_texture_image_unbind_all(), blender::GPU_texture_unbind_all(), and blender::GPU_uniformbuf_debug_unbind_all().
|
inline |
Definition at line 63 of file draw_command.hh.
References blender::assign_if_different(), and blender::GPU_front_facing().
|
inline |
Definition at line 87 of file draw_command.hh.
References shader_use_specialization, and specialization_constants.
| int blender::draw::command::RecordingState::clip_plane_count = 0 |
Definition at line 59 of file draw_command.hh.
Referenced by blender::draw::command::StateSet::execute().
| bool blender::draw::command::RecordingState::front_facing = true |
Definition at line 56 of file draw_command.hh.
Referenced by cleanup().
| int blender::draw::command::RecordingState::instance_offset = 1 |
Used for pass simple resource ID. Starts at 1 as 0 is the identity handle.
Definition at line 61 of file draw_command.hh.
| bool blender::draw::command::RecordingState::inverted_view = false |
Definition at line 57 of file draw_command.hh.
| DRWState blender::draw::command::RecordingState::pipeline_state = DRW_STATE_NO_DRAW |
Definition at line 58 of file draw_command.hh.
Referenced by blender::draw::command::StateSet::execute().
| gpu::Shader* blender::draw::command::RecordingState::shader = nullptr |
Definition at line 55 of file draw_command.hh.
| bool blender::draw::command::RecordingState::shader_use_specialization = false |
Definition at line 54 of file draw_command.hh.
Referenced by specialization_constants_get().
| gpu::shader::SpecializationConstants blender::draw::command::RecordingState::specialization_constants |
Definition at line 50 of file draw_command.hh.
Referenced by specialization_constants_get().
| bool blender::draw::command::RecordingState::specialization_constants_in_use = false |
Definition at line 52 of file draw_command.hh.