MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_metal_surface_descriptor Struct Reference

#include <surface.h>

Data Fields

uint32_t size
mln_logical_size logical_size
mln_metal_context_descriptor context
void * layer

Detailed Description

A Metal layer to render to, for mln_map_attach_metal_surface().

The session sets the layer's device, pixel format, and drawable size. It uses the layer until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.

Field Documentation

◆ context

mln_metal_context_descriptor mln_metal_surface_descriptor::context

The MTLDevice to render with. A null device picks the system's default.

◆ layer

void* mln_metal_surface_descriptor::layer

Your CAMetalLayer.

◆ logical_size

mln_logical_size mln_metal_surface_descriptor::logical_size

◆ size

uint32_t mln_metal_surface_descriptor::size

The documentation for this struct was generated from the following file: