W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: [Public WebGL] Re: WebGL IDL for uniform1fv is not valid WebIDL

From: Glenn Maynard <glenn@zewt.org>
Date: Mon, 2 Apr 2012 19:42:23 -0500
Message-ID: <CABirCh_SZX91tG2L_BuapTqdGhVJdU_pCJB_9wxsjFOnqQQV_Q@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Cameron McCormack <cam@mcc.id.au>, public webgl <public_webgl@khronos.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Mon, Apr 2, 2012 at 7:26 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

>  I think removing the Float32Array overload will make passing JS Arrays
>> of Numbers and Float32Array objects work.
>>
>
> But require copies in the process, no?  That seems highly undesirable in
> this case.


If it matters as an optimization, implementations could still create
separate overloads for this as long as it's transparent to the user,
right?  The overload dispatch is "magic" either way, from the perspective
of the JS developer.

-- 
Glenn Maynard
Received on Tuesday, 3 April 2012 00:42:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC