Struct Meshlet ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Small group of triangles on a mesh used for low level culling
csharp
public readonly struct MeshletConstructors ​
Meshlet(KVObject) ​
Deserializes a meshlet from its KV3 representation.
csharp
public Meshlet(KVObject data)Parameters ​
data KVObject
KV3 object containing the meshlet properties.
Properties ​
CullingData ​
Quantized culling info (axis.xyz + cutoff) used for cone/backface culling.
csharp
public Meshlet.MeshletCone CullingData { get; init; }Property Value ​
PackedAABB ​
Packed AABB for this meshlet, normalized in parent draw space.
csharp
public Meshlet.MeshletBounds PackedAABB { get; init; }Property Value ​
TriangleCount ​
Number of triangles contained in this meshlet. Typically maxes out at 48.
csharp
public uint TriangleCount { get; init; }Property Value ​
TriangleOffset ​
Offset (in triangles) into the global index/triangle list for this meshlet.
csharp
public int TriangleOffset { get; init; }Property Value ​
VertexCount ​
Number of vertices contained in this meshlet.
csharp
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.
csharp
public int VertexOffset { get; init; }
