|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| uint64_t | generation |
| uint32_t | width |
| uint32_t | height |
| double | scale_factor |
| uint64_t | frame_id |
| void * | texture |
| void * | device |
| uint64_t | pixel_format |
Metal frame acquired from a session-owned texture target.
| void* mln_metal_owned_texture_frame::device |
Borrowed id<MTLDevice> / MTL::Device*. Valid until frame release.
| uint64_t mln_metal_owned_texture_frame::frame_id |
Opaque frame identity used to reject stale releases.
| uint64_t mln_metal_owned_texture_frame::generation |
Session generation that produced this frame.
| uint32_t mln_metal_owned_texture_frame::height |
Physical Metal texture height in device pixels.
| uint64_t mln_metal_owned_texture_frame::pixel_format |
Backend-native pixel format value. Metal uses MTLPixelFormat.
| double mln_metal_owned_texture_frame::scale_factor |
UI-to-device pixel scale used for this frame.
| void* mln_metal_owned_texture_frame::texture |
Borrowed id<MTLTexture> / MTL::Texture*. Valid until frame release.
| uint32_t mln_metal_owned_texture_frame::width |
Physical Metal texture width in device pixels.