OptionalcontextMetal backend context. device is optional for Metal surfaces.
OptionalextentLogical surface extent. A scale_factor that differs from the map's is accepted and logged as a warning.
OptionallayerCAMetalLayer* / CA::MetalLayer* retained by the session. Required.
Metal attachment options for a native surface.
See
mln_metal_surface_descriptorin the C API reference.