forked from MoonsideGames/RefreshCS
Compare commits
9 Commits
indirect-s
...
main
Author | SHA1 | Date |
---|---|---|
cosmonaut | b5325e6d03 | |
cosmonaut | 60a7523fac | |
cosmonaut | ebf511133a | |
cosmonaut | fb5fee5f56 | |
cosmonaut | 10f54d6b03 | |
TheSpydog | 52d3355120 | |
TheSpydog | 880bf79f3a | |
cosmonaut | 1643061386 | |
TheSpydog | e828f9b7fb |
|
@ -36,7 +36,7 @@ namespace RefreshCS
|
|||
/* Version */
|
||||
|
||||
public const uint REFRESH_MAJOR_VERSION = 1;
|
||||
public const uint REFRESH_MINOR_VERSION = 9;
|
||||
public const uint REFRESH_MINOR_VERSION = 15;
|
||||
public const uint REFRESH_PATCH_VERSION = 0;
|
||||
|
||||
public const uint REFRESH_COMPILED_VERSION = (
|
||||
|
@ -136,10 +136,7 @@ namespace RefreshCS
|
|||
One,
|
||||
Two,
|
||||
Four,
|
||||
Eight,
|
||||
Sixteen,
|
||||
ThirtyTwo,
|
||||
SixtyFour
|
||||
Eight
|
||||
}
|
||||
|
||||
public enum CubeMapFace : uint
|
||||
|
@ -367,6 +364,15 @@ namespace RefreshCS
|
|||
public uint level;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct IndirectDrawCommand
|
||||
{
|
||||
public uint vertexCount;
|
||||
public uint instanceCount;
|
||||
public uint firstVertex;
|
||||
public uint firstInstance;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct SamplerStateCreateInfo
|
||||
{
|
||||
|
@ -452,6 +458,7 @@ namespace RefreshCS
|
|||
public uint depth;
|
||||
public byte isCube;
|
||||
public uint levelCount;
|
||||
public SampleCount sampleCount;
|
||||
public TextureFormat format;
|
||||
public TextureUsageFlags usageFlags; /* Refresh_TextureUsageFlags */
|
||||
}
|
||||
|
@ -546,7 +553,6 @@ namespace RefreshCS
|
|||
public uint depth;
|
||||
public uint layer;
|
||||
public uint level;
|
||||
public SampleCount sampleCount;
|
||||
public Vec4 clearColor;
|
||||
public LoadOp loadOp;
|
||||
public StoreOp storeOp;
|
||||
|
@ -711,8 +717,13 @@ namespace RefreshCS
|
|||
uint yHeight,
|
||||
uint uvWidth,
|
||||
uint uvHeight,
|
||||
IntPtr data,
|
||||
uint dataLength
|
||||
IntPtr yDataPtr,
|
||||
IntPtr uDataPtr,
|
||||
IntPtr vDataPtr,
|
||||
uint yDataLength,
|
||||
uint uvDataLength,
|
||||
uint yStride,
|
||||
uint uvStride
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
@ -945,8 +956,7 @@ namespace RefreshCS
|
|||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr Refresh_AcquireCommandBuffer(
|
||||
IntPtr device,
|
||||
byte isFixed
|
||||
IntPtr device
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
@ -961,8 +971,13 @@ namespace RefreshCS
|
|||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void Refresh_Submit(
|
||||
IntPtr device,
|
||||
uint commandBufferCount,
|
||||
IntPtr pCommandBuffers
|
||||
IntPtr commandBuffer
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr Refresh_SubmitAndAcquireFence(
|
||||
IntPtr device,
|
||||
IntPtr commandBuffer
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
@ -970,26 +985,44 @@ namespace RefreshCS
|
|||
IntPtr device
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void Refresh_WaitForFences(
|
||||
IntPtr device,
|
||||
byte waitAll,
|
||||
uint fenceCount,
|
||||
IntPtr pFences
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern int Refresh_QueryFence(
|
||||
IntPtr device,
|
||||
IntPtr fence
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void Refresh_ReleaseFence(
|
||||
IntPtr device,
|
||||
IntPtr fence
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IntPtr Refresh_Image_Load(
|
||||
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||
out int width,
|
||||
out int height,
|
||||
out int numChannels
|
||||
IntPtr bufferPtr,
|
||||
int bufferLength,
|
||||
out int w,
|
||||
out int h,
|
||||
out int len
|
||||
);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void Refresh_Image_Free(
|
||||
IntPtr mem
|
||||
);
|
||||
public static extern void Refresh_Image_Free(IntPtr mem);
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void Refresh_Image_SavePNG(
|
||||
public static extern IntPtr Refresh_Image_SavePNG(
|
||||
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||
IntPtr data,
|
||||
int w,
|
||||
int h,
|
||||
byte bgra,
|
||||
IntPtr data
|
||||
int h
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue