spirv-reader: Sink pointer-to-vector-component

WGSL does not support pointer-to-vector-component, so the SPIR-V
reader needs to sink these pointers into their use.

Bug: tint:491
Change-Id: Ib5ae87d2f6bbac13280314ba11369d7ced505b56
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/68241
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
James Price
2021-11-04 19:55:57 +00:00
parent e7323f1a36
commit def9d97609
20 changed files with 685 additions and 617 deletions

View File

@@ -25,13 +25,9 @@ fn main_1() {
let x_52 : i32 = x_51.f1;
x_6 = x_52;
x_41 = x_51.f2;
let x_55 : ptr<function, f32> = &(x_41[0].x);
let x_56 : mat2x2<f32> = x_41;
let x_58 : ptr<function, f32> = &(x_41[1].x);
let x_59 : mat2x2<f32> = x_41;
let x_62 : ptr<function, f32> = &(x_41[0].y);
let x_63 : mat2x2<f32> = x_41;
let x_65 : ptr<function, f32> = &(x_41[1].y);
let x_66 : mat2x2<f32> = x_41;
x_GLF_color = vec4<f32>(f32(x_52), (x_56[0u].x + x_59[1u].x), (x_63[0u].y + x_66[1u].y), f32(x_52));
return;