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
WGPU error: Error while parsing WGSL: :9:5 error: cannot assign to value of type 'vec2<f32>'
m_0[i32(0)].xy = vec2<f32>(1.0f, 4.0f);
^^^^^^^^^^^^^^
- While validating [ShaderModuleDescriptor]
- While calling [Device].CreateShaderModule([ShaderModuleDescriptor]).
The text was updated successfully, but these errors were encountered:
Currently the WGSL emitter will generate code that assigns to a swizzle expression, which does not seem to be allowed.
Affected tests:
tests/language-feature/swizzles/matrix-swizzle-write-swizzle.slang
tests/language-feature/swizzles/matrix-swizzle-write-array.slang
Example output:
The text was updated successfully, but these errors were encountered: