Function SDL_CopyGPUTextureToTexture

pub unsafe extern "C" fn SDL_CopyGPUTextureToTexture(
    copy_pass: *mut SDL_GPUCopyPass,
    source: *const SDL_GPUTextureLocation,
    destination: *const SDL_GPUTextureLocation,
    w: u32,
    h: u32,
    d: u32,
    cycle: bool,
)
Available on crate feature dep_sdl3 only.
Expand description

Performs a texture-to-texture copy.

This copy occurs on the GPU timeline. You may assume the copy has finished in subsequent commands.

§Parameters

  • copy_pass: a copy pass handle.
  • source: a source texture region.
  • destination: a destination texture region.
  • w: the width of the region to copy.
  • h: the height of the region to copy.
  • d: the depth of the region to copy.
  • cycle: if true, cycles the destination texture if the destination texture is bound, otherwise overwrites the data.

§Availability

This function is available since SDL 3.2.0.