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
9536ced014
dawn-cmake
/
test
/
tint
/
bug
/
chromium
/
1341475.wgsl.expected.wgsl
5 lines
80 B
WebGPU Shading Language
Raw
Normal View
History
Unescape
Escape
tint/resolver: Evaluate const-expr swizzles Bug: chromium:1341475 Change-Id: I2ac44824b08c460df759a96d0ba96f6045b60f74 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95765 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
2022-07-07 17:49:02 +00:00
@
compute
@
workgroup_size
(
1
)
fn
main
(
)
{
tint: transform::RemovePhonies: skip builtins with no side effects This transform was attempting to remove builtins with no side effects, such as a call with abstract int/float args, which is unhandled by this transform. For example, this would cause the transform to ICE: _ = clamp(1, 2, 3); Fixes ClusterFuzz issue crbug.com/1348739. Bug: chromium:1348739 Change-Id: Ie355eb36c6c020417c2d93f2dc434c11dbb72d1f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97880 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
2022-08-01 17:21:54 +00:00
let
a
=
mix
(
1.0
,
vec2
(
1.0
)
.
y
,
1.0
)
;
tint/resolver: Evaluate const-expr swizzles Bug: chromium:1341475 Change-Id: I2ac44824b08c460df759a96d0ba96f6045b60f74 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95765 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
2022-07-07 17:49:02 +00:00
}