fix some native mappings

pull/1/head
cosmonaut 2021-01-05 23:41:56 -08:00
parent 982ebac944
commit b55229db35
3 changed files with 13 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
bin/
obj/
.vs

View File

@ -5,6 +5,7 @@
<RootNamespace>RefreshCS</RootNamespace>
<Platform>x64</Platform>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Platforms>x64</Platforms>
</PropertyGroup>
</Project>

View File

@ -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)]