|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <surface.h>
Data Fields | |
| uint32_t | size |
| mln_logical_size | logical_size |
| mln_web_gpu_context_descriptor | context |
| void * | surface |
| uint32_t | format |
A WebGPU surface to present to, for mln_map_attach_web_gpu_surface().
The session configures the surface. It uses the surface until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.
| mln_web_gpu_context_descriptor mln_web_gpu_surface_descriptor::context |
| uint32_t mln_web_gpu_surface_descriptor::format |
The WGPUTextureFormat to configure the surface with.
| mln_logical_size mln_web_gpu_surface_descriptor::logical_size |
| uint32_t mln_web_gpu_surface_descriptor::size |
| void* mln_web_gpu_surface_descriptor::surface |
Your WGPUSurface.