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

#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

Detailed Description

WebGPU attachment options for a borrowed texture target.

Field Documentation

◆ context

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.

◆ extent

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.

◆ format

uint32_t mln_webgpu_borrowed_texture_descriptor::format

Backend-native WGPUTextureFormat value of every texture. Undefined is invalid.

◆ physical_height

uint32_t mln_webgpu_borrowed_texture_descriptor::physical_height

Physical texture height in device pixels. Defaults to 256.

◆ physical_width

uint32_t mln_webgpu_borrowed_texture_descriptor::physical_width

Physical texture width in device pixels. Defaults to 256.

◆ texture_count

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.

◆ textures

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.


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