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

Re: [Public WebGL] Should the non-typed-array overloads of uniform*v and vertextAttrib*v be IDL arrays or IDL sequences?



On Sun, Apr 15, 2012 at 12:34 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>
> On 4/15/12 2:53 PM, Benoit Jacob wrote:
>>
>> These functions too will return a new object each time, since the array is
>> not stored by the WebGL implementation. If that's not specified in the spec,
>> it should be.
>
>
> The spec does say that new objects are returned in these cases, afaict.
>
>
>>>   Are there other cases that return an IDL array object?
>>
>>
>> getParameter can, though it's typed arrays (it's plain arrays in current
>> Mozilla implementation, but that's a bug).
>
>
> Typed arrays are IDL interface objects from the point of view of WebIDL, not
> array objects.  As far as I can tell, getParameter cannot return an IDL
> array objects.

getAttachedShaders was the last entry point in the WebGL spec
returning an IDL array object. I've changed it to return
"sequence<WebGLShader>?".

-Ken

-----------------------------------------------------------
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:
unsubscribe public_webgl
-----------------------------------------------------------