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

#include <texture.h>

Data Fields

mln_logical_extent extent
mln_metal_context_descriptor context
uint64_t pixel_format

Detailed Description

Metal attachment options for an owned texture target.

Field Documentation

◆ context

mln_metal_context_descriptor mln_metal_owned_texture_descriptor::context

Metal backend context. device is required.

◆ extent

mln_logical_extent mln_metal_owned_texture_descriptor::extent

Logical texture extent. A scale_factor that differs from the map's is accepted and logged as a warning.

◆ pixel_format

uint64_t mln_metal_owned_texture_descriptor::pixel_format

Backend-native MTLPixelFormat value of the ring's textures: either MTLPixelFormatRGBA8Unorm or MTLPixelFormatBGRA8Unorm. Defaults to MTLPixelFormatRGBA8Unorm. Readback returns RGBA8 for either format.


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