Blender V4.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, ResourceHandle handle)
 
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
 
uint16_t instance_len
 
uint8_t expand_prim_type
 
uint8_t expand_prim_len
 
uint32_t vertex_first
 
uint32_t vertex_len
 
ResourceHandle handle
 

Detailed Description

Definition at line 351 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,
ResourceHandle handle )
inline

Definition at line 367 of file draw_command.hh.

References batch, BLI_assert, handle, instance_len, vertex_first, and vertex_len.

Member Function Documentation

◆ execute()

◆ is_primitive_expansion()

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

Definition at line 391 of file draw_command.hh.

References expand_prim_type, and GPU_PRIM_NONE.

Referenced by execute().

◆ serialize()

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

Definition at line 541 of file draw_command.cc.

References instance_len, vertex_first, and vertex_len.

Member Data Documentation

◆ batch

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

Definition at line 352 of file draw_command.hh.

Referenced by Draw(), and execute().

◆ expand_prim_len

uint8_t blender::draw::command::Draw::expand_prim_len

Definition at line 355 of file draw_command.hh.

Referenced by execute().

◆ expand_prim_type

uint8_t blender::draw::command::Draw::expand_prim_type

Definition at line 354 of file draw_command.hh.

Referenced by execute(), and is_primitive_expansion().

◆ handle

ResourceHandle blender::draw::command::Draw::handle

Definition at line 358 of file draw_command.hh.

Referenced by Draw().

◆ instance_len

uint16_t blender::draw::command::Draw::instance_len

Definition at line 353 of file draw_command.hh.

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

◆ vertex_first

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

Definition at line 356 of file draw_command.hh.

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

◆ vertex_len

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

Definition at line 357 of file draw_command.hh.

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


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