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) → void - Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window.
-
sdlMetalDestroyView(
) → void - Destroy an existing SDL_MetalView object.
-
sdlMetalGetLayer(
) → Pointer< NativeType> - Get a pointer to the backing CAMetalLayer for the given view.