sdlReleaseGpuSampler function

void sdlReleaseGpuSampler(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlGpuSampler> sampler
)

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

You must not reference the sampler after calling this function.

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

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_ReleaseGPUSampler( SDL_GPUDevice *device, SDL_GPUSampler *sampler)

Implementation

void sdlReleaseGpuSampler(
    Pointer<SdlGpuDevice> device, Pointer<SdlGpuSampler> sampler) {
  final sdlReleaseGpuSamplerLookupFunction = libSdl3.lookupFunction<
      Void Function(
          Pointer<SdlGpuDevice> device, Pointer<SdlGpuSampler> sampler),
      void Function(Pointer<SdlGpuDevice> device,
          Pointer<SdlGpuSampler> sampler)>('SDL_ReleaseGPUSampler');
  return sdlReleaseGpuSamplerLookupFunction(device, sampler);
}