Function SDL_DownloadFromGPUBuffer

pub unsafe extern "C" fn SDL_DownloadFromGPUBuffer(
    copy_pass: *mut SDL_GPUCopyPass,
    source: *const SDL_GPUBufferRegion,
    destination: *const SDL_GPUTransferBufferLocation,
)
Available on crate feature dep_sdl3 only.
Expand description

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.

§Parameters

  • copy_pass: a copy pass handle.
  • source: the source buffer with offset and size.
  • destination: the destination transfer buffer with offset.

§Availability

This function is available since SDL 3.2.0.