forked from MoonsideGames/RefreshCS
fix some oversights
parent
2e3871a03d
commit
fbed91bfd6
|
@ -66,11 +66,14 @@ namespace RefreshCS
|
||||||
DontCare
|
DontCare
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ClearOptionsBits
|
[Flags]
|
||||||
|
public enum ClearOptionsFlags : uint
|
||||||
{
|
{
|
||||||
Color = 1,
|
Color = 1,
|
||||||
Depth = 2,
|
Depth = 2,
|
||||||
Stencil = 4
|
Stencil = 4,
|
||||||
|
DepthStencil = Depth | Stencil,
|
||||||
|
All = Color | Depth | Stencil
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum IndexElementSize
|
public enum IndexElementSize
|
||||||
|
@ -585,8 +588,8 @@ namespace RefreshCS
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct ComputePipelineCreateInfo
|
public struct ComputePipelineCreateInfo
|
||||||
{
|
{
|
||||||
ShaderStageState computeShaderState;
|
public ShaderStageState computeShaderState;
|
||||||
ComputePipelineLayoutCreateInfo pipelineLayoutCreateInfo;
|
public ComputePipelineLayoutCreateInfo pipelineLayoutCreateInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
@ -646,7 +649,7 @@ namespace RefreshCS
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
ref Rect clearRect,
|
ref Rect clearRect,
|
||||||
uint clearOptions,
|
Refresh.ClearOptionsFlags clearOptions,
|
||||||
ref Color[] colors,
|
ref Color[] colors,
|
||||||
uint colorCount,
|
uint colorCount,
|
||||||
float depth,
|
float depth,
|
||||||
|
@ -803,13 +806,21 @@ namespace RefreshCS
|
||||||
IntPtr buffer
|
IntPtr buffer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void Refresh_GetBufferData(
|
||||||
|
IntPtr device,
|
||||||
|
IntPtr buffer,
|
||||||
|
IntPtr data,
|
||||||
|
uint dataLengthInBytes
|
||||||
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_SetBufferData(
|
public static extern void Refresh_SetBufferData(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr buffer,
|
IntPtr buffer,
|
||||||
uint offsetInBytes,
|
uint offsetInBytes,
|
||||||
IntPtr data,
|
IntPtr data,
|
||||||
uint dataLength
|
uint dataLengthInBytes
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
|
Loading…
Reference in New Issue