sdlReleaseGpuComputePipeline function

void sdlReleaseGpuComputePipeline(
  1. Pointer<SdlGpuDevice> device,
  2. Pointer<SdlGpuComputePipeline> computePipeline
)

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

You must not reference the compute pipeline after calling this function.

\param device a GPU context. \param compute_pipeline a compute pipeline to be destroyed.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_ReleaseGPUComputePipeline( SDL_GPUDevice *device, SDL_GPUComputePipeline *compute_pipeline)

Implementation

void sdlReleaseGpuComputePipeline(Pointer<SdlGpuDevice> device,
    Pointer<SdlGpuComputePipeline> computePipeline) {
  final sdlReleaseGpuComputePipelineLookupFunction = libSdl3.lookupFunction<
          Void Function(Pointer<SdlGpuDevice> device,
              Pointer<SdlGpuComputePipeline> computePipeline),
          void Function(Pointer<SdlGpuDevice> device,
              Pointer<SdlGpuComputePipeline> computePipeline)>(
      'SDL_ReleaseGPUComputePipeline');
  return sdlReleaseGpuComputePipelineLookupFunction(device, computePipeline);
}