Tour of WGSL

Constant expressions

Constant-expressions are value expressions computed at shader module creation time.

Constant-expressions can only be formed from other constant-expressions.