|
Blender V5.0
|
#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 46 of file draw_command.hh.
|
inline |
Definition at line 70 of file draw_command.hh.
References front_facing, G, G_DEBUG_GPU, GPU_front_facing(), GPU_storagebuf_debug_unbind_all(), GPU_texture_image_unbind_all(), GPU_texture_unbind_all(), and GPU_uniformbuf_debug_unbind_all().
|
inline |
Definition at line 60 of file draw_command.hh.
References blender::assign_if_different(), and GPU_front_facing().
|
inline |
Definition at line 84 of file draw_command.hh.
References shader_use_specialization, and specialization_constants.
| int blender::draw::command::RecordingState::clip_plane_count = 0 |
Definition at line 56 of file draw_command.hh.
Referenced by blender::draw::command::StateSet::execute().
| bool blender::draw::command::RecordingState::front_facing = true |
Definition at line 53 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 58 of file draw_command.hh.
| bool blender::draw::command::RecordingState::inverted_view = false |
Definition at line 54 of file draw_command.hh.
| DRWState blender::draw::command::RecordingState::pipeline_state = DRW_STATE_NO_DRAW |
Definition at line 55 of file draw_command.hh.
Referenced by blender::draw::command::StateSet::execute().
| gpu::Shader* blender::draw::command::RecordingState::shader = nullptr |
Definition at line 52 of file draw_command.hh.
| bool blender::draw::command::RecordingState::shader_use_specialization = false |
Definition at line 51 of file draw_command.hh.
Referenced by specialization_constants_get().
| gpu::shader::SpecializationConstants blender::draw::command::RecordingState::specialization_constants |
Definition at line 47 of file draw_command.hh.
Referenced by specialization_constants_get().
| bool blender::draw::command::RecordingState::specialization_constants_in_use = false |
Definition at line 49 of file draw_command.hh.