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
3530c6bf06
dawn-cmake
/
test
/
bug
/
tint
/
1064.wgsl.expected.hlsl
16 lines
171 B
HLSL
Raw
Normal View
History
Unescape
Escape
transform: LoopToForLoop - fix bad emission For loops only support assignments or function calls for the continuing statement. Fixed: tint:1064 Change-Id: I07065b2119e7b9f97ca7e46b1464fd72333ca429 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60212 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
2021-07-29 18:05:19 +00:00
void
main
(
)
{
Reland "HLSL: force FXC to never unroll loops" Now that I've landed this change to Dawn to disable FXC optimizations: https://dawn-review.googlesource.com/c/dawn/+/70700,, we can reland this change. The Tint-into-Dawn roll was failing because FXC would miscompile certain loops into infinite loops when not unrolled. Also reland test/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.hlsl Bug: tint:1112 Bug: dawn:1203 Change-Id: I641d68864b833e0fbe3b117d397b89ae96482536 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/71000 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-11-25 18:44:50 +00:00
[
loop
]
while
(
true
)
{
transform: LoopToForLoop - fix bad emission For loops only support assignments or function calls for the continuing statement. Fixed: tint:1064 Change-Id: I07065b2119e7b9f97ca7e46b1464fd72333ca429 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60212 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
2021-07-29 18:05:19 +00:00
if
(
false
)
{
}
else
{
break
;
}
{
if
(
true
)
{
}
else
{
break
;
}
}
}
return
;
}