commit | ed998e91ab43fa7a9e62f8e716af7b058305aae3 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Wed Nov 23 19:57:00 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 23 19:57:00 2022 +0000 |
tree | 2f53d679327cb65e672a667b1e14da585157b903 | |
parent | 05c8daac420965194364a6647bfadf5322c284c2 [diff] [blame] |
tint: Suffix builtin return types with '_f32' If the template type is f32. See: https://github.com/gpuweb/gpuweb/pull/3629 Change-Id: Ia686d77b4dbc169d7ef69a91d67e45357bee199f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111442 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/test/tint/builtins/modf/vector/runtime.wgsl.expected.glsl b/test/tint/builtins/modf/vector/runtime.wgsl.expected.glsl index fd2df75..0090769 100644 --- a/test/tint/builtins/modf/vector/runtime.wgsl.expected.glsl +++ b/test/tint/builtins/modf/vector/runtime.wgsl.expected.glsl
@@ -1,12 +1,12 @@ #version 310 es -struct modf_result_vec2 { +struct modf_result_vec2_f32 { vec2 fract; vec2 whole; }; -modf_result_vec2 tint_modf(vec2 param_0) { - modf_result_vec2 result; +modf_result_vec2_f32 tint_modf(vec2 param_0) { + modf_result_vec2_f32 result; result.fract = modf(param_0, result.whole); return result; } @@ -14,7 +14,7 @@ void tint_symbol() { vec2 tint_symbol_1 = vec2(1.25f, 3.75f); - modf_result_vec2 res = tint_modf(tint_symbol_1); + modf_result_vec2_f32 res = tint_modf(tint_symbol_1); vec2 tint_symbol_2 = res.fract; vec2 whole = res.whole; }