Module metal

Available on crate feature dep_sdl3 only.
Expand description

Functions to creating Metal layers and views on SDL windows.

This provides some platform-specific glue for Apple platforms. Most macOS and iOS apps can use SDL without these functions, but this API they can be useful for specific OS-level integration tasks.

Functions§

SDL_Metal_CreateView
Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window.
SDL_Metal_DestroyView
Destroy an existing SDL_MetalView object.
SDL_Metal_GetLayer
Get a pointer to the backing CAMetalLayer for the given view.

Type Aliases§

SDL_MetalView
A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS).