Function SDL_GenerateMipmapsForGPUTexture

pub unsafe extern "C" fn SDL_GenerateMipmapsForGPUTexture(
    command_buffer: *mut SDL_GPUCommandBuffer,
    texture: *mut SDL_GPUTexture,
)
Available on crate feature dep_sdl3 only.
Expand description

Generates mipmaps for the given texture.

This function must not be called inside of any pass.

§Parameters

  • command_buffer: a command_buffer.
  • texture: a texture with more than 1 mip level.

§Availability

This function is available since SDL 3.2.0.