You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on TC39, and I'm working on advancing a proposal for Float16Array in JavaScript, which would hold IEEE binary16 floats. As part of that I'm exploring integration with the rest of the web platform, including WebGL.
I don't have very much experience with WebGL, so please correct me if I'm mistaken about anything here, or otherwise missing context.
I see the texImage2D API accepts Uint16Arrays for ext.HALF_FLOAT_OES types. I would hope that could easily be extended to also accept Float16Array. Is that correct, and would the WebGL group be open to such a change? (Ideally, would someone else be willing to make the change, assuming Float16Array gets added?)
Are there any other places that Float16Arrays could be relevant? I'm especially interested in any places which are currently synthesizing and returning new Uint16Arrays to represent float16 values, since those would be confusing in a world where Float16Array exists - I couldn't find any, but as I said I don't have much experience here.
The text was updated successfully, but these errors were encountered:
The Float16Array polyfill is used in the WebGPU CTS. WebGPU also supports float16, not just for textures but for compute shaders, so it would be really useful for Float16Array support to work natively in the browser
Update: the proposal to add Float16Array to JavaScript today reached stage 3, meaning the design is finished, the committee is in favor, and engines can start implementing and shipping it.
Can anyone confirm that the only work needed for webgl is to update texImage2D so that it can take a Float16Array in addition to a Uint16Array?
I'm on TC39, and I'm working on advancing a proposal for Float16Array in JavaScript, which would hold IEEE binary16 floats. As part of that I'm exploring integration with the rest of the web platform, including WebGL.
I don't have very much experience with WebGL, so please correct me if I'm mistaken about anything here, or otherwise missing context.
I see the
texImage2D
API acceptsUint16Array
s forext.HALF_FLOAT_OES
types. I would hope that could easily be extended to also accept Float16Array. Is that correct, and would the WebGL group be open to such a change? (Ideally, would someone else be willing to make the change, assuming Float16Array gets added?)Are there any other places that Float16Arrays could be relevant? I'm especially interested in any places which are currently synthesizing and returning new
Uint16Array
s to represent float16 values, since those would be confusing in a world where Float16Array exists - I couldn't find any, but as I said I don't have much experience here.The text was updated successfully, but these errors were encountered: