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