|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| mln_logical_extent | extent |
| uint32_t | physical_width |
| uint32_t | physical_height |
| mln_webgpu_context_descriptor | context |
| const mln_webgpu_borrowed_texture * | textures |
| size_t | texture_count |
| uint32_t | format |
WebGPU attachment options for a borrowed texture target.
| mln_webgpu_context_descriptor mln_webgpu_borrowed_texture_descriptor::context |
Borrowed WebGPU context. device is required. Rendering is submitted through context.queue or that device's default queue.
| mln_logical_extent mln_webgpu_borrowed_texture_descriptor::extent |
Logical texture extent; physical_width and physical_height give the texture's size. A scale_factor that differs from the map's is accepted and logged as a warning.
| uint32_t mln_webgpu_borrowed_texture_descriptor::format |
Backend-native WGPUTextureFormat value of every texture. Undefined is invalid.
| uint32_t mln_webgpu_borrowed_texture_descriptor::physical_height |
Physical texture height in device pixels. Defaults to 256.
| uint32_t mln_webgpu_borrowed_texture_descriptor::physical_width |
Physical texture width in device pixels. Defaults to 256.
| size_t mln_webgpu_borrowed_texture_descriptor::texture_count |
Number of textures, which is the ring depth, from one to MLN_TEXTURE_RING_MAX_DEPTH. A replacement keeps the count the session attached with.
| const mln_webgpu_borrowed_texture* mln_webgpu_borrowed_texture_descriptor::textures |
The ring's textures, one per slot, in slot order. Required.
The call copies the array before it returns. Only the textures it names must stay valid: until set_target replaces them, until detach completes, or until abandon returns. The textures are distinct.