Add missing block decoration.

The uniform buffer in the test/cube.wgsl needs a block attribute in
order to translate correct.

Change-Id: I2a245cffbe9f4c66b9d6ebcd66617a7fbdd98af2
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/26922
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair 2020-08-18 16:08:43 +00:00 committed by Commit Bot service account
parent 844f632785
commit 94a374fa84
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ entry_point vertex = vtx_main;
entry_point fragment = frag_main; entry_point fragment = frag_main;
# Vertex shader # Vertex shader
type Uniforms = struct { type Uniforms = [[block]] struct {
[[offset 0]] modelViewProjectionMatrix : mat4x4<f32>; [[offset 0]] modelViewProjectionMatrix : mat4x4<f32>;
}; };