-
Notifications
You must be signed in to change notification settings - Fork 165
Meshlet
Chuck Walbourn edited this page May 8, 2026
·
4 revisions
These structures are used with the ComputeMeshlets and ComputeCullData functions.
struct Meshlet
{
uint32_t VertCount;
uint32_t VertOffset;
uint32_t PrimCount;
uint32_t PrimOffset;
};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;
};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).
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
- Universal Windows Platform apps
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Xbox One
- Xbox Series X|S
- Windows Subsystem for Linux
- x86
- x64
- ARM64
- 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
DirectX Tool Kit for DirectX 11