Kanzi  3.9.7
Kanzi Engine API
kanzi::Mesh::Cluster Struct Reference

Cluster has a material, primitive type (currently always triangles), and handle for GPU memory buffer where primitive indices are stored. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/mesh.hpp>

Public Member Functions

 Cluster ()
 
 Cluster (Cluster &&)=default
 Default move constructor. More...
 
unsigned int getCPUMemoryUsage () const
 Get RAM usage of cluster. More...
 
Clusteroperator= (Cluster &&)=default
 Default move assignment. More...
 

Public Attributes

GPUBufferUniquePtr indexBuffer
 Handle for GPU memory buffer where primitive indices are stored. More...
 
unsigned int indexCount
 Number of indices. Stored in a separate variable since indexData array can be freed to save memory. More...
 
vector< byteindexData
 Vector containing the index data. May be empty. More...
 
IndexBufferType indexType
 Type of indices: UInt16 or UInt32. More...
 
MaterialSharedPtr material
 Material for this cluster. More...
 
GraphicsPrimitiveType primitiveType
 Primitive type for this cluster. More...
 

Detailed Description

Cluster has a material, primitive type (currently always triangles), and handle for GPU memory buffer where primitive indices are stored.

Constructor & Destructor Documentation

kanzi::Mesh::Cluster::Cluster ( )
inlineexplicit
kanzi::Mesh::Cluster::Cluster ( Cluster &&  )
default

Default move constructor.

Member Function Documentation

Cluster& kanzi::Mesh::Cluster::operator= ( Cluster &&  )
default

Default move assignment.

unsigned int kanzi::Mesh::Cluster::getCPUMemoryUsage ( ) const

Get RAM usage of cluster.

Member Data Documentation

GraphicsPrimitiveType kanzi::Mesh::Cluster::primitiveType

Primitive type for this cluster.

unsigned int kanzi::Mesh::Cluster::indexCount

Number of indices. Stored in a separate variable since indexData array can be freed to save memory.

IndexBufferType kanzi::Mesh::Cluster::indexType

Type of indices: UInt16 or UInt32.

vector<byte> kanzi::Mesh::Cluster::indexData

Vector containing the index data. May be empty.

MaterialSharedPtr kanzi::Mesh::Cluster::material

Material for this cluster.

GPUBufferUniquePtr kanzi::Mesh::Cluster::indexBuffer

Handle for GPU memory buffer where primitive indices are stored.


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