mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
24 lines
725 B
C#
24 lines
725 B
C#
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
using Brutal.Pointers;
|
|
|
|
namespace Brutal.MeshOptimizer
|
|
{
|
|
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
|
public unsafe partial struct MeshOptMeshlet
|
|
{
|
|
/// offsets within meshlet_vertices and meshlet_triangles arrays with meshlet data
|
|
[FieldOffset(0)]
|
|
public int VertexOffset;
|
|
|
|
[FieldOffset(4)]
|
|
public int TriangleOffset;
|
|
|
|
/// number of vertices and triangles used in the meshlet; data is stored in consecutive range [offset..offset+count) for vertices and [offset..offset+count*3) for triangles
|
|
[FieldOffset(8)]
|
|
public int VertexCount;
|
|
|
|
[FieldOffset(12)]
|
|
public int TriangleCount;
|
|
}
|
|
}
|