You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me, this caused an invalid glsl shader down the line whereas the msl variant was happy. Glsl failed (correctly) with Internal error in ShaderStages(NONE | VERTEX) shader: ERROR: 0:63: '=' : cannot convert from 'const int' to 'highp uint'
(yes, const TEXTURE_SIZE: u32 = 2048u; would be more appropriate!)
The text was updated successfully, but these errors were encountered:
Wumpf
changed the title
Missing integer type validation for contants
[wgsl-in] Missing integer type validation for contants
Apr 24, 2023
As of 0.12.0 this compiles:
When it should actually be
For me, this caused an invalid glsl shader down the line whereas the msl variant was happy. Glsl failed (correctly) with
Internal error in ShaderStages(NONE | VERTEX) shader: ERROR: 0:63: '=' : cannot convert from 'const int' to 'highp uint'
(yes,
const TEXTURE_SIZE: u32 = 2048u;
would be more appropriate!)The text was updated successfully, but these errors were encountered: