sdlReleaseGpuFence function gpu

void sdlReleaseGpuFence(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlGpuFence> fence
)

Releases a fence obtained from SDL_SubmitGPUCommandBufferAndAcquireFence.

You must not reference the fence after calling this function.

\param device a GPU context. \param fence a fence.

\since This function is available since SDL 3.2.0.

\sa SDL_SubmitGPUCommandBufferAndAcquireFence

extern SDL_DECLSPEC void SDLCALL SDL_ReleaseGPUFence( SDL_GPUDevice *device, SDL_GPUFence *fence)

Implementation

void sdlReleaseGpuFence(
  Pointer<SdlGpuDevice> device,
  Pointer<SdlGpuFence> fence,
) {
  final sdlReleaseGpuFenceLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlGpuDevice> device, Pointer<SdlGpuFence> fence),
        void Function(Pointer<SdlGpuDevice> device, Pointer<SdlGpuFence> fence)
      >('SDL_ReleaseGPUFence');
  return sdlReleaseGpuFenceLookupFunction(device, fence);
}