Tour of WGSL

@const built-ins

All the WGSL built-in functions annotated with @const can be evaluated at shader creation time.

When a call to such a function has only constant-expression arguments, then the call itself is a constant-expression.