Table of Contents

Struct Meshlet

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Small group of triangles on a mesh used for low level culling

public readonly struct Meshlet

Inherited Members

Constructors

Meshlet(KVObject)

public Meshlet(KVObject data)

Parameters

data KVObject

Properties

CullingData

Quantized culling info (axis.xyz + cutoff) used for cone/backface culling.

public Meshlet.MeshletCone CullingData { get; init; }

Property Value

Meshlet.MeshletCone

PackedAABB

Packed AABB for this meshlet, normalized in parent draw space.

public Meshlet.MeshletBounds PackedAABB { get; init; }

Property Value

Meshlet.MeshletBounds

TriangleCount

Number of triangles contained in this meshlet. Typically maxes out at 48.

public uint TriangleCount { get; init; }

Property Value

uint

TriangleOffset

Offset (in triangles) into the global index/triangle list for this meshlet.

public int TriangleOffset { get; init; }

Property Value

int

VertexCount

Number of vertices contained in this meshlet.

public uint VertexCount { get; init; }

Property Value

uint

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; }

Property Value

int