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

#include <apple.h>

Data Fields

uint32_t size
mln_logical_size logical_size
uint32_t buffer_count
mln_metal_context_descriptor context

Detailed Description

A ring of IOSurfaces that the library allocates, for mln_map_attach_io_surface_ring().

Each surface has the map's size in pixels, logical_size times the map's scale factor, and the pixel format kCVPixelFormatType_32BGRA, which Metal names MTLPixelFormatBGRA8Unorm.

Field Documentation

◆ buffer_count

uint32_t mln_io_surface_ring_descriptor::buffer_count

How many surfaces the ring has, from 1 to 8.

◆ context

mln_metal_context_descriptor mln_io_surface_ring_descriptor::context

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

◆ logical_size

mln_logical_size mln_io_surface_ring_descriptor::logical_size

◆ size

uint32_t mln_io_surface_ring_descriptor::size

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