class

WGPU::Surface

Inherits WGPU::WgpuId / Reference / Object

Constructors

from_metal_layer(label : String, layer : Pointer(Void)) : Surface
Source
from_windows_hwnd(label : String, hinstance : Pointer(Void), hwnd : Pointer(Void)) : Surface
Source
from_xlib(label : String, display : Pointer(Void), window : UInt32) : Surface
Source

Instance methods

descriptor
Source
preferred_format(adapter : Adapter) : Future::Compute(TextureFormat)

Asynchronously retreive the preferred TextureFormat for this Surface.

See Also: Future::Compute

Source
preferred_format

Lazy getter to retreive the preferred TextureFormat for this Surface. Call preferred_format(adapter : Adapter) first.

See Also: Future::Compute

Source