WebGL
Khronos
 

WebGL EXT_color_buffer_half_float Extension Draft Specification

Name

EXT_color_buffer_half_float

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Mark Callow, HI Corporation

Members of the WebGL working group

Version

Last modified date: July 15, 2014
Revision: 4

Number

WebGL extension #14

Dependencies

Written against the WebGL API 1.0 specification.

Implementations must also support the OES_texture_half_float extension.

Overview

This extension exposes the EXT_color_buffer_half_float functionality to WebGL.

The following WebGL-specific behavioral changes apply:

Consult the above extension for documentation, issues and new functions and enumerants.

When this extension is enabled:

IDL

[NoInterfaceObject]
interface EXT_color_buffer_half_float {
  const GLenum RGBA16F_EXT = 0x881A;
  const GLenum RGB16F_EXT = 0x881B;
  const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
  const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17;
}; // interface EXT_color_buffer_half_float

Additions to the WebGL Specification

In section 5.13.12 Reading back pixels, change the allowed format and types table to:

frame buffer type format type
normalized fixed-point RGBA UNSIGNED_BYTE
floating-point RGBA FLOAT

Change the paragraph beginning "If pixels is null ..." to

If frame buffer type is not that indicated in the table for the format and type combination, an INVALID_OPERATON error is generated. If pixels is null ...

Revision History

Revision 1, 2012/11/08

Revision 2, 2012/11/13

Revision 3, 2012/11/26

Revision 4, 2014/07/15