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
45820ae995
dawn-cmake
/
test
/
tint
/
samples
/
function.wgsl.expected.wgsl
8 lines
100 B
WebGPU Shading Language
Raw
Normal View
History
Unescape
Escape
test: Generate expected output for all tests The expected output is far from perfect, and the generated HLSL and MSL isn't even validated yet, so may be incorrect. However, by committing the generated output, we get clear examples of the currently generated output of each backend. As we land fixes and improvements to each backend, the presubmits will require us to update the expected test output, and so code reviews will include diffs of each backend's generated output. Change-Id: I5c2a9e5b796d0ab75b3ec4c7f8ad00a0a2ab166f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51224 Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: David Neto <dneto@google.com>
2021-05-18 09:24:18 +00:00
fn
main
(
)
->
f32
{
return
(
(
(
2.0
*
3.0
)
-
4.0
)
/
5.0
)
;
}
Update src/tint unittests to new @stage format. This CL updates all of the Tint unittests to the new @stage shorter syntax. This also updates the WGSL writer to emit the new short forms instead of using the deprecated form. Bug: tint:1503 Change-Id: I8c49e5319a19cccb5b4b5078f3ab39c50f31a9a8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92483 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
2022-06-07 13:55:34 +00:00
@
compute
@
workgroup_size
(
2
)
test: Generate expected output for all tests The expected output is far from perfect, and the generated HLSL and MSL isn't even validated yet, so may be incorrect. However, by committing the generated output, we get clear examples of the currently generated output of each backend. As we land fixes and improvements to each backend, the presubmits will require us to update the expected test output, and so code reviews will include diffs of each backend's generated output. Change-Id: I5c2a9e5b796d0ab75b3ec4c7f8ad00a0a2ab166f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51224 Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: David Neto <dneto@google.com>
2021-05-18 09:24:18 +00:00
fn
ep
(
)
{
}