gpuweb / gpuweb

Where the GPU for the Web work happens!
http://webgpu.io
Other
4.77k stars 315 forks source link

Support for mixed type `>>=` operation #4816

Open mehmetoguzderin opened 1 month ago

mehmetoguzderin commented 1 month ago

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-expr

The lack of support for mixed type >>= operation complicates code porting and readability. Supporting this could improve developer experience of WGSL.

kdashg commented 3 weeks ago
WGSL 2024-08-27 Minutes * **As discussed more generally in #4815, M2 for now, but a nice little quality-of-life feature to add down the road.**