TransferUsage

refresh2
cosmonaut 2024-03-08 15:29:35 -08:00
parent 029f19196a
commit 8f42783fd1
1 changed files with 7 additions and 0 deletions

View File

@ -308,6 +308,12 @@ namespace RefreshCS
IntOpaqueWhite IntOpaqueWhite
} }
public enum TransferUsage
{
Buffer,
Texture
}
public enum TransferOptions public enum TransferOptions
{ {
Cycle, Cycle,
@ -707,6 +713,7 @@ namespace RefreshCS
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Refresh_CreateTransferBuffer( public static extern IntPtr Refresh_CreateTransferBuffer(
IntPtr device, IntPtr device,
TransferUsage usage,
uint sizeInBytes uint sizeInBytes
); );