sdlGenerateMipmapsForGpuTexture function

void sdlGenerateMipmapsForGpuTexture(
  1. Pointer<SdlGpuCommandBuffer> commandBuffer,
  2. Pointer<SdlGpuTexture> texture
)

Generates mipmaps for the given texture.

This function must not be called inside of any pass.

\param command_buffer a command_buffer. \param texture a texture with more than 1 mip level.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_GenerateMipmapsForGPUTexture( SDL_GPUCommandBuffer *command_buffer, SDL_GPUTexture *texture)

Implementation

void sdlGenerateMipmapsForGpuTexture(Pointer<SdlGpuCommandBuffer> commandBuffer,
    Pointer<SdlGpuTexture> texture) {
  final sdlGenerateMipmapsForGpuTextureLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlGpuCommandBuffer> commandBuffer,
          Pointer<SdlGpuTexture> texture),
      void Function(Pointer<SdlGpuCommandBuffer> commandBuffer,
          Pointer<SdlGpuTexture> texture)>('SDL_GenerateMipmapsForGPUTexture');
  return sdlGenerateMipmapsForGpuTextureLookupFunction(commandBuffer, texture);
}