VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::MeshInstance::InstancingData Struct Reference

#include <scene/meshInstance.h>

Public Attributes

std::shared_ptr< VertexBuffercompactedVertexBuffer
int count = 0
void * indirectArgsBuffer = nullptr
int indirectSlot = -1
std::shared_ptr< VertexBuffervertexBuffer

Detailed Description

InstancingData class. Holds the per-instance buffer and instance count for hardware instancing. The vertex buffer contains packed InstanceData structs (float4x4 modelMatrix + float4 diffuseColor) bound at buffer slot 5 and indexed by [[instance_id]] in the vertex shader.

Definition at line 39 of file meshInstance.h.

Member Data Documentation

◆ compactedVertexBuffer

std::shared_ptr<VertexBuffer> visutwin::canvas::MeshInstance::InstancingData::compactedVertexBuffer

Definition at line 48 of file meshInstance.h.

◆ count

int visutwin::canvas::MeshInstance::InstancingData::count = 0

Definition at line 42 of file meshInstance.h.

◆ indirectArgsBuffer

void* visutwin::canvas::MeshInstance::InstancingData::indirectArgsBuffer = nullptr

Definition at line 47 of file meshInstance.h.

◆ indirectSlot

int visutwin::canvas::MeshInstance::InstancingData::indirectSlot = -1

Definition at line 49 of file meshInstance.h.

◆ vertexBuffer

std::shared_ptr<VertexBuffer> visutwin::canvas::MeshInstance::InstancingData::vertexBuffer

Definition at line 41 of file meshInstance.h.


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