EXT_texture_norm16
WebGL working group (public_webgl 'at' khronos.org)
Rijubrata Bhaumik (rijubrata.bhaumik 'at' intel.com)
Members of the WebGL working group
Last modified date: December 03, 2020
Revision: 5
WebGL extension #44
Written against the WebGL API 2.0 specification.
This extension exposes the EXT_texture_norm16 functionality to WebGL.
The following WebGL-specific behavioral changes apply:
UNSIGNED_SHORT
textures as FBO
attachments.Consult the above extension for documentation, issues and new functions and enumerants.
When this extension is enabled:
R16_EXT
, RG16_EXT
and RGBA16_EXT
become available as color-renderable formats. Renderbuffers can be
created in these formats. These and textures created with
type = UNSIGNED_SHORT
, which will have one of these internal
formats, can be attached to framebuffer object color attachments for
rendering.
texImage2D
and texSubImage2D
entry points taking ArrayBufferView
are extended to accept
Uint16Array
with the pixel type UNSIGNED_SHORT
and Int16Array
with the pixel type SHORT
.
[NoInterfaceObject] interface EXT_texture_norm16 { const GLenum R16_EXT = 0x822A; const GLenum RG16_EXT = 0x822C; const GLenum RGB16_EXT = 0x8054; const GLenum RGBA16_EXT = 0x805B; const GLenum R16_SNORM_EXT = 0x8F98; const GLenum RG16_SNORM_EXT = 0x8F99; const GLenum RGB16_SNORM_EXT = 0x8F9A; const GLenum RGBA16_SNORM_EXT = 0x8F9B; };
Revision 1, 2019/03/27
Revision 2, 2019/09/25
Revision 3, 2020/08/10
Revision 4, 2020/08/13
Revision 5, 2020/12/03