Function Renderer.getMetalLayer

Wraps SDL_RenderGetMetalLayer (from SDL 2.0.8) which gets the CAMetalLayer pointer associated with the given Metal renderer

void* getMetalLayer();

Returns

pointer to the CAMetalLayer, otherwise null if not using a Metal renderer