Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GL3.0 half-float formats #8

Open
Laar opened this issue May 8, 2011 · 2 comments
Open

GL3.0 half-float formats #8

Laar opened this issue May 8, 2011 · 2 comments

Comments

@Laar
Copy link
Contributor

Laar commented May 8, 2011

quoting appendix N.1 'New Features' from the OpenGL 3.0 spec:
"Half-float (16-bit) vertex array and pixel data (GL_NV_half_float and GL_ARB_half_float_pixel)."

edit: added the underscores

@Laar
Copy link
Contributor Author

Laar commented May 13, 2011

This probably includes adding a lot of functions. It might be useful to have the two extension specifications at hand
http://www.opengl.org/registry/specs/NV/half_float.txt
http://www.opengl.org/registry/specs/ARB/half_float_pixel.txt

@ekmett
Copy link
Member

ekmett commented Oct 27, 2014

FWIW- I have an implementation of Half as an actual haskell numeric data type that sits in my openexr bindings:

https://github.com/ekmett/openexr/blob/master/Graphics/OpenEXR/Half.hsc

It currently cheats and uses the OpenEXR conversions to/from Float, but those could be written by hand.

If we're going to bind out to Half's it'd be nice to have a data type that let you duplicate their behavior CPU side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants