|
7b14dd73
|
2025-08-19T15:57:34
|
|
WGSL: RewriteMixedTypeMathExprs
RewriteMixedTypeMathExprs: Some mixed-type arithmetic is legal in GLSL
but not WGSL. Generate code to perform the arithmetic as specified in
GLSL.
Example:
uvec2 x;
uint y;
x &= y;
Is transformed into:
x &= uvec(y);
Also,
mat2 x;
int y;
x += y;
Is transformed into:
x += mat2(float(y), float(y), float(y), float(y))
Bug: angleproject:42267100
Change-Id: I4a0ec1d9806b3331b4b1feff6fbe7c0f212f8120
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6862843
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Commit-Queue: Matthew Denton <mpdenton@chromium.org>
|