OptionalcontextBorrowed WebGPU context. device is required.
OptionalextentLogical surface extent. A scale_factor that differs from the map's is accepted and logged as a warning.
OptionalformatWGPUTextureFormat to configure the surface with. Required. A browser host takes it from navigator.gpu.getPreferredCanvasFormat().
OptionalsurfaceBorrowed WGPUSurface. Required, and must stay alive for the session. The session configures it for this device and extent, and unconfigures it when the session ends.
WebGPU attachment options for a native surface.
See
mln_webgpu_surface_descriptorin the C API reference.