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
eb0af9def7
dawn-cmake
/
test
/
tint
/
expressions
/
binary
/
mod
/
vec3-scalar
/
i32.wgsl.expected.dxc.hlsl
7 lines
103 B
HLSL
Raw
Normal View
History
Unescape
Escape
Implement mixed vector-scalar float % operator W3C consensus on https://github.com/gpuweb/gpuweb/issues/2450 Spec change: https://github.com/gpuweb/gpuweb/pull/2495 Bug: tint:1370 Change-Id: I85bb9c802b0355bc53aa8dbacca8427fb7be1ff6 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/84880 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2022-03-28 14:36:31 +00:00
[
numthreads
(
1
,
1
,
1
)
]
void
f
(
)
{
const
int3
a
=
int3
(
1
,
2
,
3
)
;
tint/writer: Disable constant inlining for lets Once 'const' is introduced, let will no longer resolve to a creation-time constant value. Add temporary code into each of the writers to prevent constants that originate from a 'let' from being inlined. This will reduce the amount of noise in later CLs. Bug: tint:1580 Change-Id: Id3493a43ac09fe9f042ff2d517d04b2ae854d43e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94541 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
2022-06-24 18:15:39 +00:00
const
int3
r
=
(
a
%
4
)
;
Implement mixed vector-scalar float % operator W3C consensus on https://github.com/gpuweb/gpuweb/issues/2450 Spec change: https://github.com/gpuweb/gpuweb/pull/2495 Bug: tint:1370 Change-Id: I85bb9c802b0355bc53aa8dbacca8427fb7be1ff6 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/84880 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2022-03-28 14:36:31 +00:00
return
;
}