[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] WebGL Shader Validation



On Jun 18, 2010, at 9:25 AM, Alan Chaney wrote:

> I have the OpenGL ES 2 shader specification 1.00 rev 17 open in front of me:
> 
> It says: (Sec  6.3 Iteration pp57)
> 
> "Non-terminating loops are allowed. The consequences of very long or non-terminating loops are platform dependent."
> 
> 
> It appears to me that a syntactically correct loop could be:
> 
> for ( int i = 0; i < 5; i ++) {
> 
>     i = i - 1;
> 
>     // whatever else you want to do here...
> }

But Appendix goes on to add limits which prevent infinite loops. In that appendix it explicitly disallows assigning to the index variable inside the loop.

-----
~Chris
cmarrin@apple.com





-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: