API updates
parent
2e346d8401
commit
031ad4c047
|
@ -308,12 +308,18 @@ namespace RefreshCS
|
||||||
IntOpaqueWhite
|
IntOpaqueWhite
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum SetDataOptions
|
public enum TransferOptions
|
||||||
{
|
{
|
||||||
Discard,
|
SafeDiscard,
|
||||||
Overwrite
|
Overwrite
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum CopyOptions
|
||||||
|
{
|
||||||
|
SafeDiscard,
|
||||||
|
SafeOverwrite
|
||||||
|
}
|
||||||
|
|
||||||
public enum Backend
|
public enum Backend
|
||||||
{
|
{
|
||||||
DontCare,
|
DontCare,
|
||||||
|
@ -905,16 +911,16 @@ namespace RefreshCS
|
||||||
/* TransferBuffer Set/Get */
|
/* TransferBuffer Set/Get */
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_SetData(
|
public static extern IntPtr Refresh_SetTransferData(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr data,
|
IntPtr data,
|
||||||
IntPtr transferBuffer,
|
IntPtr transferBuffer,
|
||||||
in BufferCopy copyParams,
|
in BufferCopy copyParams,
|
||||||
SetDataOptions option
|
TransferOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_GetData(
|
public static extern void Refresh_GetTransferData(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr transferBuffer,
|
IntPtr transferBuffer,
|
||||||
IntPtr data,
|
IntPtr data,
|
||||||
|
@ -935,7 +941,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr transferBuffer,
|
IntPtr transferBuffer,
|
||||||
in TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
in BufferImageCopy copyParams
|
in BufferImageCopy copyParams,
|
||||||
|
CopyOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -944,7 +951,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr transferBuffer,
|
IntPtr transferBuffer,
|
||||||
IntPtr gpuBuffer,
|
IntPtr gpuBuffer,
|
||||||
in BufferCopy copyParams
|
in BufferCopy copyParams,
|
||||||
|
CopyOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -953,7 +961,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
in TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
IntPtr transferBuffer,
|
IntPtr transferBuffer,
|
||||||
in BufferImageCopy copyParams
|
in BufferImageCopy copyParams,
|
||||||
|
TransferOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -962,7 +971,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr gpuBuffer,
|
IntPtr gpuBuffer,
|
||||||
IntPtr transferBuffer,
|
IntPtr transferBuffer,
|
||||||
in BufferCopy copyParams
|
in BufferCopy copyParams,
|
||||||
|
TransferOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -970,7 +980,8 @@ namespace RefreshCS
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
in TextureSlice source,
|
in TextureSlice source,
|
||||||
in TextureSlice destination
|
in TextureSlice destination,
|
||||||
|
CopyOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -979,7 +990,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
in TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
IntPtr gpuBuffer,
|
IntPtr gpuBuffer,
|
||||||
in BufferImageCopy copyParams
|
in BufferImageCopy copyParams,
|
||||||
|
CopyOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -988,7 +1000,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr gpuBuffer,
|
IntPtr gpuBuffer,
|
||||||
in TextureSlice textureSlice,
|
in TextureSlice textureSlice,
|
||||||
in BufferImageCopy bufferImageCopy
|
in BufferImageCopy bufferImageCopy,
|
||||||
|
CopyOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -997,7 +1010,8 @@ namespace RefreshCS
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
IntPtr source,
|
IntPtr source,
|
||||||
IntPtr destination,
|
IntPtr destination,
|
||||||
in BufferCopy copyParams
|
in BufferCopy copyParams,
|
||||||
|
CopyOptions option
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
|
Loading…
Reference in New Issue