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

Re: [Public WebGL] OES_texture_half_float doesn't allow Tex(Sub)Image2D to take ArrayBuffers as input



In Firefox, we promoted/demoted too-large and too-small numbers to +/-Inf and +/-0 respectively.
https://mxr.mozilla.org/mozilla-central/source/content/canvas/src/WebGLTexelConversions.h#47

Our code is also not sophisticated, but it'll work for now, since all we do is convert Uint8 to Float16 and vice versa anyways.
It would be great to make/find a more complete implementation.

-Jeff


----- Original Message -----
From: "Florian Bösch" <pyalot@gmail.com>
To: "Vladimir Vukicevic" <vladimir@mozilla.com>
Cc: "Jeff Gilbert" <jgilbert@mozilla.com>, "Kenneth Russell" <kbr@google.com>, "public webgl" <public_webgl@khronos.org>
Sent: Thursday, February 13, 2014 7:47:41 AM
Subject: Re: [Public WebGL] OES_texture_half_float doesn't allow Tex(Sub)Image2D to take ArrayBuffers as input

On Thu, Feb 13, 2014 at 2:57 PM, Florian Bösch <pyalot@gmail.com> wrote:
>
> what if you input numbers larger than expressable by half-float?
>
Now also checks for this case, and adds checks for correctness of
largest/smallest values to convert correctly. I think it might round a bit
stupid from double (not picking the nearest expressable, but the floored
one).

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