Closed GoogleCodeExporter closed 9 years ago
Original comment by kbr@chromium.org
on 11 Aug 2011 at 10:13
Original comment by nicolas....@gmail.com
on 15 Nov 2011 at 8:33
The problem with the [loop] attribute is that it causes an error if a loop
demands unrolling. This happens for instance when using gradient instructions,
or on some devices when the loop takes more than 255 iterations. Applying the
suggested patch causes some conformance tests to fail.
Note that unrolling any or all loops is not against the ESSL spec, and shader
compilation can fail when running out of resources (registers or instruction
slots). So the reality is that WebGL can't guarantee that complex shaders will
compile.
Original comment by nicolas....@gmail.com
on 16 Nov 2011 at 5:49
Original comment by c...@chromium.org
on 7 Dec 2013 at 4:09
This was fixed by outputting "Lod0" functions which don't cause unrolling of
loops. We've added the ability to recompile shaders with PREFER_UNROLL and
AVOID_UNROLL flags. The shader complexity supported by our D3D9 back-end now
meets expectations.
Original comment by c...@chromium.org
on 21 May 2014 at 3:49
Original issue reported on code.google.com by
cc.zer...@gmail.com
on 11 Aug 2011 at 12:22