sdlDownloadFromGpuTexture function
void
sdlDownloadFromGpuTexture(
- Pointer<
SdlGpuCopyPass> copyPass, - Pointer<
SdlGpuTextureRegion> source, - Pointer<
SdlGpuTextureTransferInfo> destination
Copies data from a texture 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 texture region. \param destination the destination transfer buffer with image layout information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC void SDLCALL SDL_DownloadFromGPUTexture( SDL_GPUCopyPass *copy_pass, const SDL_GPUTextureRegion *source, const SDL_GPUTextureTransferInfo *destination)
Implementation
void sdlDownloadFromGpuTexture(
Pointer<SdlGpuCopyPass> copyPass,
Pointer<SdlGpuTextureRegion> source,
Pointer<SdlGpuTextureTransferInfo> destination) {
final sdlDownloadFromGpuTextureLookupFunction = libSdl3.lookupFunction<
Void Function(
Pointer<SdlGpuCopyPass> copyPass,
Pointer<SdlGpuTextureRegion> source,
Pointer<SdlGpuTextureTransferInfo> destination),
void Function(
Pointer<SdlGpuCopyPass> copyPass,
Pointer<SdlGpuTextureRegion> source,
Pointer<SdlGpuTextureTransferInfo> destination)>(
'SDL_DownloadFromGPUTexture');
return sdlDownloadFromGpuTextureLookupFunction(copyPass, source, destination);
}