SDL_Metal_DestroyView(3)
π SDL_Metal_DestroyView π
okay bestie, welcome to the SDL3 functions corner of the man pages, where today's main character is SDL_Metal_DestroyView β the lil cleanup queen who takes your Metal view out behind the shed (gently!!) and says goodbye π
β¨ NAME β¨
SDL_Metal_DestroyView β destroys an SDL_MetalView object that already exists. like, it's already here, and now it's not. closure, literally π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_metal.h>
void SDL_Metal_DestroyView(SDL_MetalView view);
β¨ DESCRIPTION β¨
so here's the tea π« β you should call this before SDL_DestroyWindow, but only in the specific situation where you called SDL_Metal_CreateView after SDL_CreateWindow. that ordering matters, bestie. it's giving "clean up your own mess in the right order or the vibes will be off" π
β¨ FUNCTION PARAMETERS β¨
viewβ theSDL_MetalViewobject. the one you're sending off into the sunset π
β¨ THREAD SAFETY β¨
β οΈ main thread ONLY. no cap. do not try to be cute and call this from a worker thread, it will not slay, it will just break things π
β¨ AVAILABILITY β¨
this one's been around since SDL 3.2.0 β so if you're on anything older, it's not a vibe check you're passing, it literally does not exist for you π
β¨ SEE ALSO β¨
SDL_Metal_CreateView(3)β the origin story, the yin to this yang, the create to this destroy πΈ
and that's the whole page, periodt π
Simple Directmedia Layer wrote this one, it's from SDL 3.4.18, and the date on the original footer is baked right into that same line. mwah, take care of your Metal views and they'll take care of you πβ¨π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms