WebGPU module

webgpu_window_size

procedureextensionexperimentalmacOS, Linux, Windows onlySource

Native only: the size in pixels of the surface window shows.

Example
#import "Window_Creation";

window: Window_Type;
width, height := webgpu_window_size(window);

This one is only checked to compile, not run.

webgpu_window_size :: (window: Window_Type) -> (width: s32, height: s32)

Parameters

window: Window_Type

Returns

width: s32
height: s32

See also