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

#include <texture.h>

Data Fields

uint64_t generation
uint32_t width
uint32_t height
double scale_factor
uint64_t frame_id
uint32_t slot
void * texture
void * texture_view
void * device
uint32_t format

Detailed Description

WebGPU frame acquired from a texture ring.

Field Documentation

◆ device

void* mln_webgpu_texture_frame::device

Borrowed WGPUDevice. Valid until frame release.

◆ format

uint32_t mln_webgpu_texture_frame::format

Backend-native WGPUTextureFormat value.

◆ frame_id

uint64_t mln_webgpu_texture_frame::frame_id

Opaque identity of this frame.

◆ generation

uint64_t mln_webgpu_texture_frame::generation

Session generation that produced this frame.

◆ height

uint32_t mln_webgpu_texture_frame::height

Physical WebGPU texture height in device pixels.

◆ scale_factor

double mln_webgpu_texture_frame::scale_factor

UI-to-device pixel scale used for this frame.

◆ slot

uint32_t mln_webgpu_texture_frame::slot

Ring slot that holds this frame. For a borrowed target, the index of its texture in the descriptor's textures array.

◆ texture

void* mln_webgpu_texture_frame::texture

Borrowed WGPUTexture. Valid until frame release.

◆ texture_view

void* mln_webgpu_texture_frame::texture_view

Borrowed WGPUTextureView. Valid until frame release.

◆ width

uint32_t mln_webgpu_texture_frame::width

Physical WebGPU texture width in device pixels.


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