diff --git a/.gitignore b/.gitignore index cd42ee3..2e1e7eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ bin/ obj/ +.vs diff --git a/RefreshCS.csproj b/RefreshCS.csproj index 527f754..3fb4731 100644 --- a/RefreshCS.csproj +++ b/RefreshCS.csproj @@ -5,6 +5,7 @@ RefreshCS x64 true + x64 diff --git a/src/Refresh.cs b/src/Refresh.cs index eb3c0db..a82b2ef 100644 --- a/src/Refresh.cs +++ b/src/Refresh.cs @@ -550,13 +550,13 @@ namespace RefreshCS } [StructLayout(LayoutKind.Sequential)] - public struct ColorBlendState + public unsafe struct ColorBlendState { public byte logicOpEnable; public LogicOp logicOp; public IntPtr blendStates; public uint blendStateCount; - public IntPtr blendConstants; + public fixed float blendConstants[4]; } [StructLayout(LayoutKind.Sequential)] @@ -934,8 +934,8 @@ namespace RefreshCS IntPtr commandBuffer, uint firstBinding, uint bindingCount, - IntPtr[] pBuffers, - UInt64[] pOffsets + IntPtr pBuffers, + IntPtr pOffsets ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -951,16 +951,16 @@ namespace RefreshCS public static extern void Refresh_BindVertexSamplers( IntPtr device, IntPtr commandBuffer, - IntPtr[] pTextures, - IntPtr[] pSamplers + IntPtr pTextures, + IntPtr pSamplers ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void Refresh_BindFragmentSamplers( IntPtr device, IntPtr commandBuffer, - IntPtr[] pTextures, - IntPtr[] pSamplers + IntPtr pTextures, + IntPtr pSamplers ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -974,14 +974,14 @@ namespace RefreshCS public static extern void Refresh_BindComputeBuffers( IntPtr device, IntPtr commandBuffer, - IntPtr[] pBuffers + IntPtr pBuffers ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void Refresh_BindComputeTextures( IntPtr device, IntPtr commandBuffer, - IntPtr[] pTextures + IntPtr pTextures ); /* Submission/Presentation */ @@ -1014,7 +1014,7 @@ namespace RefreshCS public static extern void Refresh_Submit( IntPtr device, uint commandBufferCount, - IntPtr[] pCommandBuffers + IntPtr pCommandBuffers ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]