Kanzi Framework  3.9.0
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...
 
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. UInt8, 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

◆ 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.

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. UInt8, 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: