sdlMetalGetLayer function
Get a pointer to the backing CAMetalLayer for the given view.
\param view the SDL_MetalView object. \returns a pointer.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.2.0.
extern SDL_DECLSPEC void * SDLCALL SDL_Metal_GetLayer(SDL_MetalView view)
Implementation
Pointer<Void> sdlMetalGetLayer(SdlMetalView view) {
final sdlMetalGetLayerLookupFunction = _libSdl
.lookupFunction<
Pointer<Void> Function(SdlMetalView view),
Pointer<Void> Function(SdlMetalView view)
>('SDL_Metal_GetLayer');
return sdlMetalGetLayerLookupFunction(view);
}