SDL_Metal_GetLayer(3)
π SDL_Metal_GetLayer(3) π
okay bestie, welcome to the SDL3 functions corner of the group chat π«Ά today's main character is SDL_Metal_GetLayer β she lives in the SDL3 manual, she's a function, and she has exactly one job.
β¨ NAME β¨
SDL_Metal_GetLayer β grab a pointer to the backing CAMetalLayer for the view you hand her. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_metal.h>
void * SDL_Metal_GetLayer(SDL_MetalView view);
like. she's tiny. she's iconic. she returns a void * and she does not elaborate π
π FUNCTION PARAMETERS π
viewβ theSDL_MetalViewobject. yes queen, you gotta actually have one of those first, she can't pull a layer out of thin air π
π¦ RETURN VALUE π¦
Returns a pointer. that's the whole sentence, no notes, no lore, no bonus features β¨
π₯ THREAD SAFETY π₯
no cap, this one is main thread only. This function should only be called on the main thread. do not be out here calling her from some random background thread, she will not be serving that energy π
π AVAILABILITY π
she's been around since SDL 3.2.0 β so if your SDL is older than that, bestie, she simply does not exist for you π
π SEE ALSO π
nothing listed here, she's a solo act, main character energy only β
and that's the whole page, you ate it, periodt π the page came to you courtesy of Simple Directmedia Layer, version SDL 3.4.18, and that's the whole footer moment β go forth and get your layer, bestie ππ«Άπ§
π¦ 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