ctx.viewportSize

The frame size in device pixels, as a vec2f.

ctx.viewportSize: CtxToken

Import ctx from shaders/std and use ctx.viewportSize.