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_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
 

Detailed Description

WebGPU caller-owned texture session attachment options.

Field Documentation

◆ context

mln_webgpu_context_descriptor mln_webgpu_borrowed_texture_descriptor::context

Borrowed WebGPU context. device is required.

◆ extent

mln_render_target_extent mln_webgpu_borrowed_texture_descriptor::extent

Logical texture extent.

◆ format

uint32_t mln_webgpu_borrowed_texture_descriptor::format

Backend-native WGPUTextureFormat value. Undefined is invalid.

◆ physical_height

uint32_t mln_webgpu_borrowed_texture_descriptor::physical_height

Physical texture height in device pixels.

◆ physical_width

uint32_t mln_webgpu_borrowed_texture_descriptor::physical_width

Physical texture width in device pixels.

◆ texture

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.

◆ texture_view

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.


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