|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <framework/batching/skinBatchInstance.h>
Public Member Functions | |
| int | boneCount () const |
| Number of bones (= number of original mesh instances). | |
| const float * | paletteData () const |
| CPU-side palette data: N * 16 floats (float4x4 per node). | |
| size_t | paletteSizeBytes () const |
| Total byte size of the palette (for setVertexBytes). | |
| SkinBatchInstance (std::vector< GraphNode * > nodes) | |
| void | updateMatrices () |
Definition at line 27 of file skinBatchInstance.h.
|
explicit |
Construct from the GraphNodes of all mesh instances in the batch. Each node's worldTransform() becomes one "bone" in the palette.
Definition at line 14 of file skinBatchInstance.cpp.
|
inlinenodiscard |
Number of bones (= number of original mesh instances).
Definition at line 46 of file skinBatchInstance.h.
|
inlinenodiscard |
CPU-side palette data: N * 16 floats (float4x4 per node).
Definition at line 40 of file skinBatchInstance.h.
|
inlinenodiscard |
Total byte size of the palette (for setVertexBytes).
Definition at line 43 of file skinBatchInstance.h.
| void visutwin::canvas::SkinBatchInstance::updateMatrices | ( | ) |
Pack world matrices from all nodes into the CPU palette. Called once per frame for each dynamic batch.
Definition at line 21 of file skinBatchInstance.cpp.