Kanzi 3.9.10
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.
 
unsigned int getCPUMemoryUsage () const
 Get RAM usage of cluster.
 
Clusteroperator= (Cluster &&)=default
 Default move assignment.
 

Public Attributes

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

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

◆ Cluster() [1/2]

kanzi::Mesh::Cluster::Cluster ( )
inlineexplicit

◆ Cluster() [2/2]

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

Default move constructor.

Member Function Documentation

◆ operator=()

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

Default move assignment.

◆ getCPUMemoryUsage()

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

Get RAM usage of cluster.

Member Data Documentation

◆ primitiveType

GraphicsPrimitiveType kanzi::Mesh::Cluster::primitiveType

Primitive type for this cluster.

◆ indexCount

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

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

◆ indexType

IndexBufferType kanzi::Mesh::Cluster::indexType

Type of indices: UInt16 or UInt32.

◆ indexData

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

Vector containing the index data. May be empty.

◆ material

MaterialSharedPtr kanzi::Mesh::Cluster::material

Material for this cluster.

◆ indexBuffer

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: