sdlReleaseGpuTexture function

void sdlReleaseGpuTexture(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlGpuTexture> texture
)

Frees the given texture as soon as it is safe to do so.

You must not reference the texture after calling this function.

\param device a GPU context. \param texture a texture to be destroyed.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_ReleaseGPUTexture( SDL_GPUDevice *device, SDL_GPUTexture *texture)

Implementation

void sdlReleaseGpuTexture(
    Pointer<SdlGpuDevice> device, Pointer<SdlGpuTexture> texture) {
  final sdlReleaseGpuTextureLookupFunction = libSdl3.lookupFunction<
      Void Function(
          Pointer<SdlGpuDevice> device, Pointer<SdlGpuTexture> texture),
      void Function(Pointer<SdlGpuDevice> device,
          Pointer<SdlGpuTexture> texture)>('SDL_ReleaseGPUTexture');
  return sdlReleaseGpuTextureLookupFunction(device, texture);
}