From 62b3dd3cf423aeaf139e165981fc1dfe59131edf Mon Sep 17 00:00:00 2001 From: ShrekShao Date: Mon, 7 Dec 2020 21:22:36 -0800 Subject: [PATCH] Proposal for EXT_texture_norm16_dom_source (#3191) --- .../extension.xml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 extensions/proposals/EXT_texture_norm16_dom_source/extension.xml diff --git a/extensions/proposals/EXT_texture_norm16_dom_source/extension.xml b/extensions/proposals/EXT_texture_norm16_dom_source/extension.xml new file mode 100644 index 0000000000..6f6a100089 --- /dev/null +++ b/extensions/proposals/EXT_texture_norm16_dom_source/extension.xml @@ -0,0 +1,59 @@ + + + EXT_texture_norm16_dom_source + + WebGL + working group (public_webgl 'at' khronos.org) + + + Members of the WebGL working group + + + NN + + + + + + + + + In addition to support for ArrayBufferView in EXT_texture_norm16, + the texImage2D and texSubImage2D + entry points taking ImageBitmap and HTMLImageElement + are extended to accept the pixel type + UNSIGNED_SHORT, with associated internal format being one of + R16_EXT, RG16_EXT, + RGB16_EXT, and RGBA16_EXT. + + + Uploading 8-bit-per-channel ImageBitmap or HTMLImageElement to pixel type + UNSIGNED_SHORT with associated internal format being one of + R16_EXT, RG16_EXT, + RGB16_EXT, and RGBA16_EXT throw a DOMException. + + + Uploading ImageBitmap or HTMLImageElement with fewer channels than that indicated by the internal format + result in channel expansion where red, green, and blue channels are populated with 0 and alpha channel is populated with 0xffff. + Uploading image sources with more channels that that indicated by the internal format would result in channel clamping. + + + The supported HTMLImageElement file format is PNG only at present. + + + When this extension is enabled, the + following extensions are enabled implicitly: + + + + + + + + Initial Draft. + + +