This website requires JavaScript.
Explore
Help
Sign In
encounter
/
dawn-cmake
mirror of
https://github.com/encounter/dawn-cmake.git
Watch
1
Star
0
Fork
You've already forked dawn-cmake
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
d3b09b90e3
dawn-cmake
/
test
/
tint
/
out_of_order_decls
/
alias
/
alias.wgsl.expected.glsl
12 lines
100 B
Plaintext
Raw
Normal View
History
Unescape
Escape
resolver: Enable support of out of order declarations Allow module-scope declarations to be made in any order. Bug: tint:1266 Change-Id: Ib2607b6c33fad7c83e2c36f85b0a965eac922ec5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79769 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
2022-02-11 12:59:08 +00:00
#version 310 es
tint/writer/glsl: Set default precision to highp WGSL states that `f32` is a IEEE-754 binary32. mediump precision guarantees are much smaller than highp, and using mediump can break code generated by tint. Change-Id: I8a129c4c8ac078c785e0d5d7d21f19ed6b3620b5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/123400 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Stephen White <senorblanco@chromium.org>
2023-03-09 19:58:23 +00:00
precision highp float;
resolver: Enable support of out of order declarations Allow module-scope declarations to be made in any order. Bug: tint:1266 Change-Id: Ib2607b6c33fad7c83e2c36f85b0a965eac922ec5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79769 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
2022-02-11 12:59:08 +00:00
void f() {
int v = 0;
}
void main() {
f();
return;
}