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

Re: [Public WebGL] Feature proposal for TypedArrays

On May 10, 2010, at 10:57 AM, Vladimir Vukicevic wrote:

> On 5/10/2010 9:49 AM, Chris Marrin wrote:
>> But fp32 and fp64 are supported in compilers and hardware FPUs. I don't know of any CPU's that support fp16 natively. So full support would require conversion to and from a support FP format. I don't think it's worth doing that at this point.
> This is the part that worries me the most about the proposal, but even if we implemented fp16 support in software, the typical usage could be to do math as fp32 and then convert to fp16 before uploading to the video card for memory savings.  That would argue for having a fp16 type, but cautioning developers to not actually do math with it, which is a little scary -- someone invariably will.  However, if the use case is mainly for pre-computed data, it can already be stored and transmitted as a raw buffer (and if light manipulation is needed, an unsigned short array would provide access to the individual fp16 elements).

But then that argues that we should simply recommend that authors, when loading fp16 data from some external source, simply use an unsigned short array


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