|
Blender V5.3
|
#include <draw_command.hh>
Public Member Functions | |
| Draw ()=default | |
| Draw (gpu::Batch *batch, uint instance_len, uint vertex_len, uint vertex_first, GPUPrimType expanded_prim_type, uint expanded_prim_len, ResourceID res_id) | |
| bool | is_primitive_expansion () const |
Commands Execution | |
| void | execute (RecordingState &state) const |
Commands Serialization for debugging | |
| std::string | serialize () const |
Public Attributes | |
| gpu::Batch * | batch |
| uint32_t | instance_len: 24 |
| uint32_t | expand_prim_type: 4 |
| uint32_t | expand_prim_len: 4 |
| uint32_t | vertex_first |
| uint32_t | vertex_len |
| ResourceID | res_id |
Definition at line 374 of file draw_command.hh.
|
default |
|
inline |
Definition at line 385 of file draw_command.hh.
References batch, blender::BLI_assert(), expand_prim_len, expand_prim_type, instance_len, blender::min_uu(), res_id, vertex_first, and vertex_len.
| void blender::draw::command::Draw::execute | ( | RecordingState & | state | ) | const |
Definition at line 177 of file draw_command.cc.
References batch, expand_prim_len, expand_prim_type, blender::GPU_batch_bind_as_resources(), blender::GPU_batch_draw_advanced(), blender::GPU_batch_draw_expanded_parameter_get(), blender::GPU_batch_set_shader(), blender::GPU_shader_get_default_constant_state(), blender::draw::ResourceID::has_inverted_handedness(), instance_len, blender::gpu::shader::SpecializationConstants::is_empty(), blender::IndexRange::is_empty(), is_primitive_expansion(), blender::draw::command::procedural_batch_get(), blender::draw::ResourceID::raw, res_id, blender::IndexRange::size(), blender::IndexRange::start(), state, vertex_first, and vertex_len.
|
inline |
Definition at line 405 of file draw_command.hh.
References expand_prim_type, and blender::GPU_PRIM_NONE.
Referenced by execute().
| std::string blender::draw::command::Draw::serialize | ( | ) | const |
Definition at line 579 of file draw_command.cc.
References blender::draw::ResourceID::index(), instance_len, res_id, vertex_first, and vertex_len.
| gpu::Batch* blender::draw::command::Draw::batch |
Definition at line 375 of file draw_command.hh.
| uint32_t blender::draw::command::Draw::expand_prim_len |
Definition at line 378 of file draw_command.hh.
| uint32_t blender::draw::command::Draw::expand_prim_type |
Definition at line 377 of file draw_command.hh.
Referenced by Draw(), execute(), and is_primitive_expansion().
| uint32_t blender::draw::command::Draw::instance_len |
Definition at line 376 of file draw_command.hh.
Referenced by Draw(), execute(), and serialize().
| ResourceID blender::draw::command::Draw::res_id |
Definition at line 381 of file draw_command.hh.
Referenced by Draw(), execute(), and serialize().
| uint32_t blender::draw::command::Draw::vertex_first |
Definition at line 379 of file draw_command.hh.
Referenced by Draw(), execute(), and serialize().
| uint32_t blender::draw::command::Draw::vertex_len |
Definition at line 380 of file draw_command.hh.
Referenced by Draw(), execute(), and serialize().