WGSL currently does not support vector >>= scalar operations, unlike other compound assignments such as /=. Please see "Binary arithmetic expressions with mixed scalar and vector operands" table: https://gpuweb.github.io/gpuweb/wgsl/#arithmetic-expr
The lack of support for mixed type >>= operation complicates code porting and readability. Supporting this could improve developer experience of WGSL.
Issue 1 extracted from https://github.com/gpuweb/gpuweb/discussions/4750 by @jacobgorm
WGSL currently does not support
vector
>>=scalar
operations, unlike other compound assignments such as /=. Please see "Binary arithmetic expressions with mixed scalar and vector operands" table: https://gpuweb.github.io/gpuweb/wgsl/#arithmetic-exprThe lack of support for mixed type
>>=
operation complicates code porting and readability. Supporting this could improve developer experience of WGSL.