GL_OES_vertex_half_float

Supported Hardware

Series5, Series5XT, Series6, Series6XE, Series6XT (ES2/3 Only)

Valid APIs

OpenGL ES 1.x, 2.0

Description

This extension adds the ability to use 16-bit floating point (GL_HALF_FLOAT) representations of vertex data when uploading it to GL. The half-float data format consists of 1 sign bit, 5 exponent bits and 10 mantissa bits, and allows greater range than an integer representation would whilst reducing the memory footprint to that of a short data type.

Note

This functionality is core to OpenGL ES 3.0.

Registry Link

http://www.khronos.org/registry/gles/extensions/OES/OES_vertex_half_float.txt

Example

// Set a vertex attribute to sample vertices as half float values. 
glVertexAttribPointer(0, 4, GL_HALF_FLOAT_OES, GL_TRUE, 0, dataPointer);