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
d114055e4e
dawn-cmake
/
test
/
tint
/
expressions
/
bitcast
/
scalar
/
i32min-u32.wgsl.expected.wgsl
5 lines
84 B
WebGPU Shading Language
Raw
Normal View
History
Unescape
Escape
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
(
1
)
MSL: fix i32 INT_MIN literal emitted as `long` instead of `int` Bug: tint:124 Change-Id: Ie632b78cd67948b65e823f0a3c52fda7ef7343f3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60440 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
2021-07-30 18:56:26 +00:00
fn
f
(
)
{
Update lexer to not include `-` in numbers. This CL removes the parsing of a `-` in front of numerics when lexed. This will cause the number to become a UnaryOperator negation then the number instead of a negative number. Bug: tint:1679, tint:1141, tint:1570 Change-Id: I217c0ffcbe5be934c8d56bd83141b47ade83bc60 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106463 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
2022-10-26 15:20:47 +00:00
let
b
:
u32
=
bitcast
<
u32
>
(
-
(
2147483648
)
)
;
MSL: fix i32 INT_MIN literal emitted as `long` instead of `int` Bug: tint:124 Change-Id: Ie632b78cd67948b65e823f0a3c52fda7ef7343f3 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60440 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com>
2021-07-30 18:56:26 +00:00
}