Companion¶
object Companion
Functions¶
wrapBorrowed¶
fun wrapBorrowed(handler: WGPUTexture): Texture
Wraps a texture owned by someone else (for example the canvas of a [`CanvasSurface`](../../-canvas-surface/index.md)): [`Texture.close`](../index.md#close) only releases the wrapper, never the handle. The caller must not rely on the wrapper to keep the source resource alive.