mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue