Support the zero initializer syntax.

This Cl updates the system to allow zero initializers. This allows:

```
var a : vec3<f32> = vec3<f32>();
```

Bug: tint:34
Change-Id: I84d6b431914c4ddf112ed375fae028d912f4a080
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/23660
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair
2020-06-22 20:44:27 +00:00
committed by David Neto
parent 9c88ea5988
commit 5b853eebc6
8 changed files with 99 additions and 13 deletions

View File

@@ -15,6 +15,7 @@
[[location 0]] var<out> gl_FragColor : vec4<f32>;
fn main() -> void {
var a : vec2<f32> = vec2<f32>();
gl_FragColor = vec4<f32>(0.4, 0.4, 0.8, 1.0);
return;
}