commit | a561b989290824819e6fa9fbea0728a31fd45361 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Thu Sep 05 21:56:28 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 05 21:56:28 2024 +0000 |
tree | ffa697710d947d9eb2a4ae58839b611d82853c07 | |
parent | f15c1c3d73ee4000e5c1044c0ac33a583b7883cb [diff] [blame] |
[glsl][ir] Create header section before preamble. When emitting GLSL the `precision` modifiers and extensions need to be emitted before the `struct`s. This means we need a header section to go before the preamble section. Bug: 42251044 Change-Id: I6c702955481f5665b1110eeb36ea1ecd1eb65411 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/205574 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/builtins/gen/literal/pow/749c42.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/pow/749c42.wgsl.expected.ir.glsl index f6d27e3..35e1f83 100644 --- a/test/tint/builtins/gen/literal/pow/749c42.wgsl.expected.ir.glsl +++ b/test/tint/builtins/gen/literal/pow/749c42.wgsl.expected.ir.glsl
@@ -2,7 +2,6 @@ precision highp float; precision highp int; - void pow_749c42() { float res = 1.0f; } @@ -20,6 +19,7 @@ } #version 310 es + struct VertexOutput { vec4 pos; };