Blender V4.5
blender::draw::command::DrawGroup Struct Reference

#include <draw_command_shared.hh>

Classes

struct  [struct].desc

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  desc

Detailed Description

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.

Member Data Documentation

◆ back_facing_counter

uint blender::draw::command::DrawGroup::back_facing_counter

◆ base_index

int blender::draw::command::DrawGroup::base_index

Definition at line 46 of file draw_command_shared.hh.

◆ desc

◆ front_facing_counter

uint blender::draw::command::DrawGroup::front_facing_counter

◆ front_facing_len

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.

Referenced by blender::draw::command::DrawMultiBuf::append_draw(), and blender::draw::command::DrawMulti::execute().

◆ len

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::DrawMultiBuf::append_draw(), blender::draw::command::DrawMulti::execute(), and blender::draw::command::DrawMulti::serialize().

◆ next

uint blender::draw::command::DrawGroup::next

◆ start

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().

◆ total_counter

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.

◆ vertex_first

int blender::draw::command::DrawGroup::vertex_first

◆ vertex_len

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.

Referenced by blender::draw::command::DrawMultiBuf::append_draw(), and blender::draw::command::DrawMulti::execute().


The documentation for this struct was generated from the following file: