|
Blender V4.3
|
#include <draw_command_shared.hh>
Public Attributes | ||
| uint | next | |
| uint | start | |
| uint | len | |
| uint | front_facing_len | |
| int | vertex_len | |
| int | vertex_first | |
| int | base_index | |
| uint | total_counter | |
| uint | front_facing_counter | |
| uint | back_facing_counter | |
| struct { | ||
| uint32_t vertex_first | ||
| uint32_t expand_prim_type: 4 | ||
| uint32_t expand_prim_len: 3 | ||
| uint32_t vertex_len: 25 | ||
| gpu::Batch * gpu_batch | ||
| uint64_t _cpu_pad0 | ||
| } | desc | |
A DrawGroup allow to split the command stream into batch-able chunks of commands with the same render state.
Definition at line 25 of file draw_command_shared.hh.
| uint64_t blender::draw::command::DrawGroup::_cpu_pad0 |
Definition at line 82 of file draw_command_shared.hh.
| uint blender::draw::command::DrawGroup::back_facing_counter |
Definition at line 54 of file draw_command_shared.hh.
Referenced by blender::draw::command::DrawMulti::serialize().
| int blender::draw::command::DrawGroup::base_index |
Definition at line 46 of file draw_command_shared.hh.
| struct { ... } blender::draw::command::DrawGroup::desc |
Referenced by blender::draw::command::DrawMulti::execute().
| uint32_t blender::draw::command::DrawGroup::expand_prim_len |
Definition at line 74 of file draw_command_shared.hh.
| uint32_t blender::draw::command::DrawGroup::expand_prim_type |
Definition at line 73 of file draw_command_shared.hh.
| uint blender::draw::command::DrawGroup::front_facing_counter |
Definition at line 53 of file draw_command_shared.hh.
Referenced by blender::draw::command::DrawMulti::serialize().
| uint blender::draw::command::DrawGroup::front_facing_len |
Number of non inverted scaling instances in this Group.
Definition at line 40 of file draw_command_shared.hh.
| gpu::Batch* blender::draw::command::DrawGroup::gpu_batch |
Needed to create the correct draw call.
Definition at line 78 of file draw_command_shared.hh.
Referenced by blender::draw::command::DrawMulti::execute().
| uint blender::draw::command::DrawGroup::len |
Total number of instances (including inverted facing). Needed to issue the draw call.
Definition at line 38 of file draw_command_shared.hh.
Referenced by blender::draw::command::DrawMulti::serialize().
| uint blender::draw::command::DrawGroup::next |
Index of next DrawGroup from the same header.
Definition at line 27 of file draw_command_shared.hh.
Referenced by blender::draw::command::DrawMultiBuf::append_draw(), and blender::draw::command::DrawMulti::serialize().
| uint blender::draw::command::DrawGroup::start |
IMPORTANT: All the following 3 members do not take multi-view into account. They only count the number of input instances. The command generation shader must multiply them by view_len to get the correct indices for resource ids. Index of the first instances after sorting.
Definition at line 36 of file draw_command_shared.hh.
Referenced by blender::draw::command::DrawMulti::serialize().
| uint blender::draw::command::DrawGroup::total_counter |
Atomic counters used during command sorting. GPU only. Reset on CPU.
Definition at line 51 of file draw_command_shared.hh.
| int blender::draw::command::DrawGroup::vertex_first |
Definition at line 44 of file draw_command_shared.hh.
| uint32_t blender::draw::command::DrawGroup::vertex_first |
Definition at line 70 of file draw_command_shared.hh.
| int blender::draw::command::DrawGroup::vertex_len |
#gpu::Batch values (or subrange of) copied to DrawCommand after sorting.
Definition at line 43 of file draw_command_shared.hh.
| uint32_t blender::draw::command::DrawGroup::vertex_len |
Definition at line 75 of file draw_command_shared.hh.