|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <surface.h>
Data Fields | |
| mln_render_target_extent | extent |
| mln_webgpu_context_descriptor | context |
| void * | surface |
| uint32_t | format |
WebGPU native surface session attachment options.
| mln_webgpu_context_descriptor mln_webgpu_surface_descriptor::context |
Borrowed WebGPU context. device is required.
| mln_render_target_extent mln_webgpu_surface_descriptor::extent |
Logical surface extent.
| uint32_t mln_webgpu_surface_descriptor::format |
WGPUTextureFormat to configure the surface with. Required. A browser host takes it from navigator.gpu.getPreferredCanvasFormat().
| void* mln_webgpu_surface_descriptor::surface |
Borrowed WGPUSurface. Required, and must stay alive for the session. The session configures it for this device and extent, and unconfigures it when the session ends.