Function SDL_GetRenderMetalLayer
pub unsafe extern "C" fn SDL_GetRenderMetalLayer(
renderer: *mut SDL_Renderer,
) -> *mut c_void
Available on crate feature
dep_sdl3
only.Expand description
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 *
.
§Parameters
renderer
: the renderer to query.
§Return value
Returns a CAMetalLayer *
on success, or NULL if the renderer isn’t a
Metal renderer.
§Thread safety
This function should only be called on the main thread.
§Availability
This function is available since SDL 3.2.0.