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

#include <texture.h>

Data Fields

uint32_t size
mln_logical_size logical_size
uint32_t physical_width
uint32_t physical_height
mln_web_gpu_context_descriptor context
const mln_web_gpu_borrowed_texture * textures
size_t texture_count
uint32_t format

Detailed Description

A ring of your WebGPU textures, for mln_map_attach_web_gpu_borrowed_texture().

logical_size sets the map's size. physical_width and physical_height give the textures' size in pixels, which is usually logical_size times the map's scale factor. Each texture must be 2D with that size, format, one layer, one mip level, one sample, and WGPUTextureUsage_RenderAttachment. The ring holds up to MLN_TEXTURE_RING_MAX_DEPTH distinct textures.

The session uses the textures until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.

Field Documentation

◆ context

mln_web_gpu_context_descriptor mln_web_gpu_borrowed_texture_descriptor::context

◆ format

uint32_t mln_web_gpu_borrowed_texture_descriptor::format

The textures' WGPUTextureFormat.

◆ logical_size

mln_logical_size mln_web_gpu_borrowed_texture_descriptor::logical_size

◆ physical_height

uint32_t mln_web_gpu_borrowed_texture_descriptor::physical_height

◆ physical_width

uint32_t mln_web_gpu_borrowed_texture_descriptor::physical_width

◆ size

uint32_t mln_web_gpu_borrowed_texture_descriptor::size

◆ texture_count

size_t mln_web_gpu_borrowed_texture_descriptor::texture_count

◆ textures

const mln_web_gpu_borrowed_texture* mln_web_gpu_borrowed_texture_descriptor::textures

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