feat(ufbx): switch to native ufbx_vec/quat/matrix types
Replaces all Misaki.HighPerformance.Mathematics vector, quaternion, and matrix types in Ghost.Ufbx bindings with new native ufbx_vec2, ufbx_vec3, ufbx_vec4, ufbx_quat, and ufbx_matrix structs. Updates all interop code, struct fields, and API signatures accordingly. Adds struct definitions for the new types and provides matrix operations as struct methods. Removes unnecessary math package reference. Also includes minor fixes to system attributes, meshlet LOD logic, and mesh utility. BREAKING CHANGE: All Ufbx-related APIs now use ufbx_* types instead of Misaki.HighPerformance.Mathematics types. Existing code using the old types will require updates.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Ghost.Ufbx
|
||||
}
|
||||
|
||||
[UnscopedRef]
|
||||
public ref Misaki.HighPerformance.Mathematics.float2 value_vec2
|
||||
public ref ufbx_vec2 value_vec2
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -54,7 +54,7 @@ namespace Ghost.Ufbx
|
||||
}
|
||||
|
||||
[UnscopedRef]
|
||||
public ref Misaki.HighPerformance.Mathematics.float3 value_vec3
|
||||
public ref ufbx_vec3 value_vec3
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace Ghost.Ufbx
|
||||
}
|
||||
|
||||
[UnscopedRef]
|
||||
public ref Misaki.HighPerformance.Mathematics.float4 value_vec4
|
||||
public ref ufbx_vec4 value_vec4
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -83,16 +83,13 @@ namespace Ghost.Ufbx
|
||||
public float value_real;
|
||||
|
||||
[FieldOffset(0)]
|
||||
[NativeTypeName("ufbx_vec2")]
|
||||
public Misaki.HighPerformance.Mathematics.float2 value_vec2;
|
||||
public ufbx_vec2 value_vec2;
|
||||
|
||||
[FieldOffset(0)]
|
||||
[NativeTypeName("ufbx_vec3")]
|
||||
public Misaki.HighPerformance.Mathematics.float3 value_vec3;
|
||||
public ufbx_vec3 value_vec3;
|
||||
|
||||
[FieldOffset(0)]
|
||||
[NativeTypeName("ufbx_vec4")]
|
||||
public Misaki.HighPerformance.Mathematics.float4 value_vec4;
|
||||
public ufbx_vec4 value_vec4;
|
||||
|
||||
[InlineArray(4)]
|
||||
public partial struct _value_real_arr_e__FixedBuffer
|
||||
|
||||
Reference in New Issue
Block a user