mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 10:03:58 +01:00
[naga] Fix type error in test.
Change the WGSL code in the `function_returns_void` test in `tests/wgsl-errors.rs` so that the construction expression types correctly. Subsequent iterations of the WGSL front end will be doing some type checking earlier, to support WGSL's automatic conversions, and without this fix, this test will stop checking what it is intended to check.
This commit is contained in:
1 parent
72462267e8
commit
104119a402
1 file changed
+1
-1
@@ -1909,7 +1909,7 @@ fn function_returns_void() {
|
||||
check(
|
||||
"
|
||||
fn x() {
|
||||
let a = vec2<f32>(1, 2u);
|
||||
let a = vec2<f32>(1.0, 2.0);
|
||||
}
|
||||
|
||||
fn b() {
|
||||
|
||||
Reference in new issue
Block a user