metal topic

CategoryMetal

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

sdlMetalCreateView(Pointer<SdlWindow> window) SdlEglSurface metal
Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window.
sdlMetalDestroyView(SdlMetalView view) → void metal
Destroy an existing SDL_MetalView object.
sdlMetalGetLayer(SdlMetalView view) Pointer<Void> metal
Get a pointer to the backing CAMetalLayer for the given view.