SDL_RELEASEGPUCOMPUTEPIPELINE(3)

πŸ’… SDL_ReleaseGPUComputePipeline πŸ’…

okay bestie, welcome to the SDL3 FUNCTIONS manual, page SDL_ReleaseGPUComputePipeline(3) β€” yes it's a mouthful, yes we're gonna get through it together, and yes it slays.


✨ NAME ✨

SDL_ReleaseGPUComputePipeline β€” frees the given compute pipeline as soon as it is safe to do so. as soon as it's safe, bestie, not one second before 🫢


✨ SYNOPSIS ✨

#include <SDL3/SDL_gpu.h>

void SDL_ReleaseGPUComputePipeline(
    SDL_GPUDevice *device,
    SDL_GPUComputePipeline *compute_pipeline);

like. look at that signature. it's giving "I have two arguments and I'm not afraid to use them" 😌✨


✨ DESCRIPTION ✨

so here's the tea πŸ«– and it's important tea, not gossip tea:

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

fr fr. once you call this, that pipeline is gone-gone, and touching it afterwards is not the vibe. do not pass it around, do not stash it, do not look at it. it's over, it's done, we don't text it back πŸ’€


✨ FUNCTION PARAMETERS ✨

  • device β€” a GPU context. πŸ‘‘ the whole reason any of this works.
  • compute_pipeline β€” a compute pipeline to be destroyed. say your goodbyes, she's leaving πŸŽ€

✨ AVAILABILITY ✨

this one's been around since SDL 3.2.0 β€” so if you're on anything older, no she's not there, sorry bestie 🌸


and that's the whole page, no crumbs left, we ate πŸ“

this has been a Simple Directmedia Layer moment, brought to you by SDL 3.4.18, and you just read SDL_ReleaseGPUComputePipeline(3) β€” go release that pipeline and live your main character life πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from