Overte C++ Documentation
gpu::Batch::NamedBatchData Struct Reference

#include <Batch.h>

Public Member Functions

void process (Batch &batch)
 Adds commands for drawInstanced call for this set of instanced objects. More...
 

Public Attributes

BufferPointers buffers
 
Function function
 
DrawCallInfoBuffer drawCallInfos
 

Detailed Description

Used for instancing, currently for basic shapes with simple single color shading.

Member Function Documentation

◆ process()

void gpu::Batch::NamedBatchData::process ( Batch &  batch)
inline

Adds commands for drawInstanced call for this set of instanced objects.

Parameters
batchBatch to which commands will be added to.

Member Data Documentation

◆ buffers

BufferPointers gpu::Batch::NamedBatchData::buffers

Contains buffers needed for a given instanced draw call. Currently, it can contain color data on INSTANCE_COLOR_BUFFER index, and fade data on INSTANCE_FADE1_BUFFER...INSTANCE_FADE7_BUFFER. These also have per-instance stride.

◆ drawCallInfos

DrawCallInfoBuffer gpu::Batch::NamedBatchData::drawCallInfos

The whole named batch is drawn as a single drawInstanced call. drawCallInfos buffer is bound with per instance stride, providing indexes of transformations for each drawn object.

◆ function

Function gpu::Batch::NamedBatchData::function

Function that adds batch commands necessary to draw instanced objects from this NamedBatchData. It's called after all the objects are collected.


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