Functions to creating Metal layers and views on SDL windows.
More...
|
using | SDL::MetalViewRaw = SDL_MetalView |
| Alias to raw representation for MetalView.
|
|
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.
◆ Destroy()
void SDL::MetalView::Destroy |
( |
| ) |
|
|
inline |
◆ GetLayer()
void * SDL::MetalView::GetLayer |
( |
| ) |
|
|
inline |
- Returns
- a pointer.
- Since
- This function is available since SDL 3.2.0.
◆ Metal_CreateView()
On macOS, this does not associate a MTLDevice with the CAMetalLayer on its own. It is up to user code to do that.
The returned handle can be casted directly to a NSView or UIView. To access the backing CAMetalLayer, call MetalView.GetLayer().
- Parameters
-
- Returns
- handle NSView or UIView.
- Since
- This function is available since SDL 3.2.0.
- See also
- MetalView.Destroy
-
MetalView.GetLayer
◆ Metal_DestroyView()
◆ Metal_GetLayer()
- Parameters
-
- Returns
- a pointer.
- Since
- This function is available since SDL 3.2.0.