sdlDownloadFromGpuBuffer function
void
sdlDownloadFromGpuBuffer(
- Pointer<
SdlGpuCopyPass> copyPass, - Pointer<
SdlGpuBufferRegion> source, - Pointer<
SdlGpuTransferBufferLocation> destination
Copies data from a buffer to a transfer buffer on the GPU timeline.
This data is not guaranteed to be copied until the command buffer fence is signaled.
\param copy_pass a copy pass handle. \param source the source buffer with offset and size. \param destination the destination transfer buffer with offset.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC void SDLCALL SDL_DownloadFromGPUBuffer( SDL_GPUCopyPass *copy_pass, const SDL_GPUBufferRegion *source, const SDL_GPUTransferBufferLocation *destination)
Implementation
void sdlDownloadFromGpuBuffer(
Pointer<SdlGpuCopyPass> copyPass,
Pointer<SdlGpuBufferRegion> source,
Pointer<SdlGpuTransferBufferLocation> destination) {
final sdlDownloadFromGpuBufferLookupFunction = libSdl3.lookupFunction<
Void Function(
Pointer<SdlGpuCopyPass> copyPass,
Pointer<SdlGpuBufferRegion> source,
Pointer<SdlGpuTransferBufferLocation> destination),
void Function(
Pointer<SdlGpuCopyPass> copyPass,
Pointer<SdlGpuBufferRegion> source,
Pointer<SdlGpuTransferBufferLocation> destination)>(
'SDL_DownloadFromGPUBuffer');
return sdlDownloadFromGpuBufferLookupFunction(copyPass, source, destination);
}