Blender V5.3
blender::draw::command::Draw Struct Reference

#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

Detailed Description

Definition at line 374 of file draw_command.hh.

Constructor & Destructor Documentation

◆ Draw() [1/2]

blender::draw::command::Draw::Draw ( )
default

◆ Draw() [2/2]

blender::draw::command::Draw::Draw ( gpu::Batch * batch,
uint instance_len,
uint vertex_len,
uint vertex_first,
GPUPrimType expanded_prim_type,
uint expanded_prim_len,
ResourceID res_id )
inline

Member Function Documentation

◆ execute()

◆ is_primitive_expansion()

bool blender::draw::command::Draw::is_primitive_expansion ( ) const
inline

Definition at line 405 of file draw_command.hh.

References expand_prim_type, and blender::GPU_PRIM_NONE.

Referenced by execute().

◆ serialize()

std::string blender::draw::command::Draw::serialize ( ) const

Member Data Documentation

◆ batch

gpu::Batch* blender::draw::command::Draw::batch

Definition at line 375 of file draw_command.hh.

Referenced by Draw(), and execute().

◆ expand_prim_len

uint32_t blender::draw::command::Draw::expand_prim_len

Definition at line 378 of file draw_command.hh.

Referenced by Draw(), and execute().

◆ expand_prim_type

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

◆ instance_len

uint32_t blender::draw::command::Draw::instance_len

Definition at line 376 of file draw_command.hh.

Referenced by Draw(), execute(), and serialize().

◆ res_id

ResourceID blender::draw::command::Draw::res_id

Definition at line 381 of file draw_command.hh.

Referenced by Draw(), execute(), and serialize().

◆ vertex_first

uint32_t blender::draw::command::Draw::vertex_first

Definition at line 379 of file draw_command.hh.

Referenced by Draw(), execute(), and serialize().

◆ vertex_len

uint32_t blender::draw::command::Draw::vertex_len

Definition at line 380 of file draw_command.hh.

Referenced by Draw(), execute(), and serialize().


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