|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| mln_render_target_extent | extent |
| uint32_t | physical_width |
| uint32_t | physical_height |
| mln_webgpu_context_descriptor | context |
| void * | texture |
| void * | texture_view |
| uint32_t | format |
WebGPU caller-owned texture session attachment options.
| mln_webgpu_context_descriptor mln_webgpu_borrowed_texture_descriptor::context |
Borrowed WebGPU context. device is required.
| mln_render_target_extent mln_webgpu_borrowed_texture_descriptor::extent |
Logical texture extent.
| uint32_t mln_webgpu_borrowed_texture_descriptor::format |
Backend-native WGPUTextureFormat value. Undefined is invalid.
| uint32_t mln_webgpu_borrowed_texture_descriptor::physical_height |
Physical texture height in device pixels.
| uint32_t mln_webgpu_borrowed_texture_descriptor::physical_width |
Physical texture width in device pixels.
| void* mln_webgpu_borrowed_texture_descriptor::texture |
Borrowed WGPUTexture. Required.
The texture and view must be created by context.device, and rendering is submitted through context.queue or that device's default queue. The texture must be 2D, single-sample, and render-attachment capable. Its physical dimensions and format must match this descriptor. Include TextureBinding usage when the host will sample from the texture after rendering.
| void* mln_webgpu_borrowed_texture_descriptor::texture_view |
Borrowed WGPUTextureView for texture. Required.
The view must be a 2D color view compatible with texture and format.