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

Re: [Public WebGL] WebGL, typed arrays, Web IDL, ECMAScript



Hi Cameron,

----- Original Message -----
> Hi. I just subscribed to the list.
> 
> Would someone be able to summarise for me the current state of play with
> regard to the following:
> 
> * What changes does WebGL need of Web IDL? Is it just the
> introduction of byte and unsigned byte as types?

I believe that's the only piece.

> * Are typed arrays in use in implementations (how stable is the spec)?

Yep -- there are implementations in Firefox, Chrome, and WebKit nightly builds.  They are largely interoperable for implemented functionality; notably, Firefox doesn't have DataView implemented yet.

> * Are typed arrays likely to become part of ECMAScript, and if so how
> soon?

Unlikely at this point.  There is an alternate proposal in ES that has a bunch of nice features, but is impractical for implementation in the timeframe that WebGL needs.  However, in the future the hope is that both will work well with WebGL.

> * What is the (current or desired) relationship between the array and
> sequence types in Web IDL and typed arrays?

Current relationship is none -- typed arrays are defined in terms of WebIDL, and then optimized internally by the JS engines.  Thus it's already possible to specify arguments as explicit typed arrays.  One desired relationship might be some syntax/spec language that allows for sequence<t> where t is some basic type to be passed in via typed arrays to various APIs, but that likely involves more extensive browser code modifications than handling them for a smaller explicit set of functions.

    - Vlad
-----------------------------------------------------------
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: