sdl.metal

Metal Interface

Members

Aliases

SDL_MetalLayer
alias SDL_MetalLayer = OpaqueHandle!("SDL_MetalLayer")

A handle to a CAMetalLayer.

SDL_MetalView
alias SDL_MetalView = OpaqueHandle!("SDL_MetalView")

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

Functions

SDL_Metal_CreateView
SDL_MetalView SDL_Metal_CreateView(SDL_Window* window)

Create a CAMetalLayer-backed NSView/UIView and attach it to the specified window.

SDL_Metal_DestroyView
void SDL_Metal_DestroyView(SDL_MetalView view)

Destroy an existing SDL_MetalView object.

SDL_Metal_GetLayer
SDL_MetalLayer SDL_Metal_GetLayer(SDL_MetalView view)

Get a pointer to the backing CAMetalLayer for the given view.

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen