92 lines
3.8 KiB
C#
92 lines
3.8 KiB
C#
using StgSharp.Math;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
namespace StgSharp
|
|
{
|
|
internal static partial class internalIO
|
|
{
|
|
[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);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "addps",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern IntPtr addps_internal(IntPtr ptr1, IntPtr ptr2);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "subps",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern IntPtr subps_internal(IntPtr ptr1, IntPtr ptr2);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "mulps",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern IntPtr mulps_internal(IntPtr ptr1, IntPtr ptr2);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "mulps_const",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern IntPtr mulps_const_internal(IntPtr ptr, float value);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "mulps_sum",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern float mulps_sum_internal(IntPtr ptr1, IntPtr ptr2);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "mulps",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern IntPtr divps_internal(IntPtr ptr1, IntPtr ptr2);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "divps_const",
|
|
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);
|
|
|
|
[DllImport("StgSharpGraphic.dll", EntryPoint = "deinit_matmap_sse",
|
|
CallingConvention = CallingConvention.Cdecl)]
|
|
internal static extern void deinitMatmap_sse_internal(ref M128matMap mapPtr);
|
|
|
|
}
|
|
}
|