MeshBuffer.MeshUsage


class MeshBuffer.MeshUsage


Describes the intended usage and mutability of a MeshBuffer.

Indicates how the buffer was configured at creation time:

Summary

Public companion properties

MeshBuffer.MeshUsage

Indicates mesh data is modified occasionally at runtime.

MeshBuffer.MeshUsage

Indicates mesh data is set once and never modified.

Public companion properties

DYNAMIC

val DYNAMIC: MeshBuffer.MeshUsage

Indicates mesh data is modified occasionally at runtime.

Balanced for both CPU writes and GPU reads.

STATIC

val STATIC: MeshBuffer.MeshUsage

Indicates mesh data is set once and never modified.

Optimized for maximum GPU rendering performance.