SDL_GetRenderMetalLayer

Get the CAMetalLayer associated with the given Metal renderer.

This function returns void *, so SDL doesn't have to include Metal's headers, but it can be safely cast to a CAMetalLayer *.

extern (C) nothrow @nogc extern
void*
SDL_GetRenderMetalLayer

Parameters

renderer SDL_Renderer*

The renderer to query.

Return Value

Type: void*

A CAMetalLayer * on success, or null if the renderer isn't a Metal renderer.

Threadsafety: This function should only be called on the main thread.

See Also

Meta