Struct Meshlet
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
Small group of triangles on a mesh used for low level culling
public readonly struct MeshletInherited Members
Constructors
Meshlet(KVObject)
public Meshlet(KVObject data)Parameters
dataKVObject
Properties
CullingData
Quantized culling info (axis.xyz + cutoff) used for cone/backface culling.
public Meshlet.MeshletCone CullingData { get; init; }Property Value
PackedAABB
Packed AABB for this meshlet, normalized in parent draw space.
public Meshlet.MeshletBounds PackedAABB { get; init; }Property Value
TriangleCount
Number of triangles contained in this meshlet. Typically maxes out at 48.
public uint TriangleCount { get; init; }Property Value
TriangleOffset
Offset (in triangles) into the global index/triangle list for this meshlet.
public int TriangleOffset { get; init; }Property Value
VertexCount
Number of vertices contained in this meshlet.
public uint VertexCount { get; init; }Property Value
VertexOffset
Offset (in vertices) into the global vertex/index data for this meshlet. Used by the renderer to locate the meshlet's vertex data.
public int VertexOffset { get; init; }