modify readback API

refresh2
cosmonaut 2024-03-05 17:38:06 -08:00
parent 7465d4d4de
commit 859675dbab
1 changed files with 19 additions and 21 deletions

View File

@ -969,7 +969,7 @@ namespace RefreshCS
IntPtr device,
IntPtr commandBuffer,
IntPtr transferBuffer,
in TextureRegion textureSlice,
in TextureRegion textureRegion,
in BufferImageCopy copyParams,
WriteOptions writeOption
);
@ -984,26 +984,6 @@ namespace RefreshCS
WriteOptions writeOption
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_DownloadFromTexture(
IntPtr device,
IntPtr commandBuffer,
in TextureRegion textureSlice,
IntPtr transferBuffer,
in BufferImageCopy copyParams,
TransferOptions transferOption
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_DownloadFromBuffer(
IntPtr device,
IntPtr commandBuffer,
IntPtr gpuBuffer,
IntPtr transferBuffer,
in BufferCopy copyParams,
TransferOptions transferOption
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_CopyTextureToTexture(
IntPtr device,
@ -1115,6 +1095,24 @@ namespace RefreshCS
IntPtr fence
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_DownloadFromTexture(
IntPtr device,
in TextureRegion textureRegion,
IntPtr transferBuffer,
in BufferImageCopy copyParams,
TransferOptions transferOption
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_DownloadFromBuffer(
IntPtr device,
IntPtr gpuBuffer,
IntPtr transferBuffer,
in BufferCopy copyParams,
TransferOptions transferOption
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Refresh_Image_Load(
IntPtr bufferPtr,