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

#include <texture.h>

Data Fields

void * texture
void * texture_view

Detailed Description

One caller-owned WebGPU texture of a borrowed texture ring.

Field Documentation

◆ texture

void* mln_webgpu_borrowed_texture::texture

Borrowed WGPUTexture. Required.

The texture must be created by the descriptor's context.device. It must be 2D, single-sample, and render-attachment capable, and its physical dimensions and format must match the descriptor. Include TextureBinding usage when the host will sample from the texture after rendering.

◆ texture_view

void* mln_webgpu_borrowed_texture::texture_view

Borrowed WGPUTextureView for texture. Required. The view must be a 2D color view compatible with texture and the descriptor's format.


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