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
29428679c4
dawn-cmake
/
test
/
tint
/
builtins
/
modf
/
scalar
/
const_members.wgsl.expected...
7 lines
105 B
HLSL
Raw
Normal View
History
Unescape
Escape
test/tint: Expand modf end-to-end tests Check that these work as a mix of constant and runtime. Bug: tint:1581 Change-Id: I572122d9425c4bb8e60125879f9829d765580d1f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111243 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
2022-11-23 10:39:48 +00:00
[
numthreads
(
1
,
1
,
1
)
]
void
main
(
)
{
tint/transform: fix PromoteInitializersToLet for constant expressions Fix more edge cases uncovered with tint:1781 Fixed: tint:1781 Change-Id: I58d120185f47c10bc9fe55dd95a198d496c4ec94 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/113024 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
2022-12-09 12:34:36 +00:00
const
float
fract
=
0.25f
;
const
float
whole
=
1.0f
;
test/tint: Expand modf end-to-end tests Check that these work as a mix of constant and runtime. Bug: tint:1581 Change-Id: I572122d9425c4bb8e60125879f9829d765580d1f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111243 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
2022-11-23 10:39:48 +00:00
return
;
}