daily update on 20230813 by nitload youmu, weritting matrix algs

This commit is contained in:
Nitload
2023-08-13 22:45:22 +08:00
parent f9f339405e
commit 969406c4e4
212 changed files with 14880 additions and 13745 deletions
+30 -1
View File
@@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -12,8 +13,13 @@ namespace StgSharp
{
[DllImport("StgSharpGraphic.dll", EntryPoint = "load",
CallingConvention = CallingConvention.Cdecl)]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal static extern IntPtr load_internal(float x,float y, float z, float w);
[DllImport("StgSharpGraphic.dll",EntryPoint = "load_matmap",
CallingConvention = CallingConvention.Cdecl)]
internal static extern IntPtr load_mat(IntPtr c0, IntPtr c1, IntPtr c2, IntPtr c3);
[DllImport("StgSharpGraphic.dll", EntryPoint = "load_cpy",
CallingConvention = CallingConvention.Cdecl)]
internal static extern IntPtr load_cpy_internal(IntPtr ptr);
@@ -46,17 +52,40 @@ namespace StgSharp
CallingConvention = CallingConvention.Cdecl)]
internal static extern IntPtr divps_const_internal(IntPtr ptr, float value);
[DllImport("StgSharpGraphic.dll", EntryPoint = "sqrtss_const",
CallingConvention = CallingConvention.Cdecl)]
internal static extern float sqrtss_const_internal(float a);
[DllImport("StgSharpGraphic.dll",EntryPoint = "test_addps_mat",
CallingConvention = CallingConvention.Cdecl)]
internal static extern IntPtr addps_mat_internal_test(IntPtr ptr1, IntPtr ptr2);
[DllImport("StgSharpGraphic.dll", EntryPoint = "set_m128ptr_default",
CallingConvention = CallingConvention.Cdecl)]
internal static extern IntPtr set_m128ptr_default_internal();
[DllImport("StgSharpGraphic.dll", EntryPoint = "transpose_ssemat_2",
CallingConvention = CallingConvention.Cdecl)]
internal static extern ref M128matMap transpose_ssemat2_internal(ref M128matMap matMap);
[DllImport("StgSharpGraphic.dll",EntryPoint = "transpose_ssemat_3",
CallingConvention = CallingConvention.Cdecl)]
internal static extern ref M128matMap transpose_ssemat3_internal(ref M128matMap matMap);
[DllImport("StgSharpGraphic.dll", EntryPoint = "deinitM128",
CallingConvention = CallingConvention.Cdecl)]
internal static extern void deinitM128_internal(IntPtr M128Ptr);
internal static extern void deinitM128_internal(IntPtr M128Ptr);
[DllImport("StgSharpGraphic.dll", EntryPoint = "deinit_matmap_sse",
CallingConvention = CallingConvention.Cdecl)]
internal static extern void deinitMatmap_sse_internal(ref M128matMap mapPtr);
}
}