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_ ⚠Create View - Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window.
- SDL_
Metal_ ⚠Destroy View - Destroy an existing
SDL_MetalView
object. - SDL_
Metal_ ⚠GetLayer - Get a pointer to the backing CAMetalLayer for the given view.
Type Aliases§
- SDL_
Metal View - A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS).