fix: resolve all build errors in Meshlet LOD pipeline

- Use correct UnsafeList constructor (int capacity, Allocator)
- Use .Count instead of .Length for UnsafeList
- Cast GetUnsafePtr() to typed pointers explicitly
- Use Api.meshopt_* constants (not MeshOptApi) for simplify flags
- Use meshopt_Meshlet instance methods BuildsFlex/BuildsSpatial
- Use correct meshopt_Meshlet field names (vertex_offset, triangle_offset, etc.)
- Fix byte constant overflow with unchecked cast in LockBoundary
- Add Ghost.MeshOptimizer project reference to Ghost.Graphics.csproj
This commit is contained in:
2026-03-17 03:14:09 +00:00
parent 0a3502b858
commit 2376fc9414
8 changed files with 178 additions and 243 deletions

View File

@@ -1,6 +1,8 @@
using System;
using Ghost.MeshOptimizer;
using Misaki.HighPerformance;
using Misaki.HighPerformance.LowLevel.Collections;
using Misaki.HighPerformance.LowLevel;
using Misaki.HighPerformance.LowLevel.Buffer;
namespace Ghost.Graphics.Meshlet;