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
Shader validation error:
┌─ Hello World Shader:9:10
│
9 │ return vec4f(1, 0, 1, 1);
│ ^^^^^^^^^^^^^^^^^ naga::Expression [5]
Entry point fs at Fragment is invalid
Expression [5] is invalid
Composing 0's component type is not expected
this can be fixed by changing the line to:
returnvec4f(1.0, 0.0, 1.0, 1.0);
this is unexpected coming from native webgpu in the browser, where vec4f(1,0,1,1) will correctly render magenta.
is the divergence intentional? or is it something we want to catch up to in the wgsl spec?
The text was updated successfully, but these errors were encountered:
neilsarkar
changed the title
[wgsl-in] vector splat constructor requires decimal for float types
[wgsl-in] vector constructor and splat constructors requires decimal for float types
Sep 27, 2023
neilsarkar
changed the title
[wgsl-in] vector constructor and splat constructors requires decimal for float types
[wgsl-in] vector constructor and splat constructors require decimal for float types
Sep 27, 2023
neilsarkar
changed the title
[wgsl-in] vector constructor and splat constructors require decimal for float types
[wgsl-in] vector constructor and splat constructors require decimal point for float types
Sep 27, 2023
this gives an error:
this can be fixed by changing the line to:
this is unexpected coming from native webgpu in the browser, where
vec4f(1,0,1,1)
will correctly render magenta.it seems to be described in the wgsl spec here: https://www.w3.org/TR/WGSL/#conversion-rank
is the divergence intentional? or is it something we want to catch up to in the wgsl spec?
The text was updated successfully, but these errors were encountered: