Skip to content

Meshlet

Chuck Walbourn edited this page May 8, 2026 · 4 revisions

Usage

These structures are used with the ComputeMeshlets and ComputeCullData functions.

Meshlet

struct Meshlet
{
    uint32_t VertCount;
    uint32_t VertOffset;
    uint32_t PrimCount;
    uint32_t PrimOffset;
};

MeshletTriangle

Encodes a triangle in a 30-bit structure that can be packed into a uint32_t DWORD.

struct MeshletTriangle
{
    uint32_t i0 : 10;
    uint32_t i1 : 10;
    uint32_t i2 : 10;
};

Constants

The default values are MESHLET_DEFAULT_MAX_VERTS (128) and MESHLET_DEFAULT_MAX_PRIMS (128). The meshlet sizes can range from MESHLET_MINIMUM_SIZE (32) to MESHLET_MAXIMUM_SIZE (256).

For Use

  • Universal Windows Platform apps
  • Windows desktop apps
  • Windows 11
  • Windows 10
  • Windows 8.1
  • Xbox One
  • Xbox Series X|S
  • Windows Subsystem for Linux

Architecture

  • x86
  • x64
  • ARM64

For Development

  • Visual Studio 2026
  • Visual Studio 2022 (17.12 or later)
  • clang/LLVM v12 - v20
  • GCC 10.5, 11.4, 12.3, 13.3, 14.2
  • MinGW 12.2, 13.2
  • CMake 3.21

Related Projects

DirectX Tool Kit for DirectX 11

DirectX Tool Kit for DirectX 12

DirectXTex

DirectXMath

Tools

Test Suite

Content Exporter

DxCapsViewer

See also

DirectX Landing Page

Clone this wiki locally