-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from msc-hi/master
Require texture{_half,}_float to implicitly enable color_buffer{_half,}_float
- Loading branch information
Showing
10 changed files
with
799 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,76 @@ | ||
<?xml version="1.0"?> | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extension href="OES_texture_float/"> | ||
<name>OES_texture_float</name> | ||
<contact> | ||
<a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL working group</a> (public_webgl 'at' khronos.org) | ||
</contact> | ||
|
||
<contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL | ||
working group</a> (public_webgl 'at' khronos.org) </contact> | ||
|
||
<contributors> | ||
<contributor>Members of the WebGL working group</contributor> | ||
</contributors> | ||
|
||
<number>1</number> | ||
|
||
<depends> | ||
<api version="1.0"/> | ||
</depends> | ||
|
||
<overview> | ||
<mirrors href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" name="OES_texture_float"> | ||
<addendum>Optional support for <code>FLOAT</code> textures as FBO attachments.</addendum> | ||
<mirrors href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" | ||
name="OES_texture_float"> | ||
<addendum>Optional support for <code>FLOAT</code> textures as FBO | ||
attachments (deprecated).</addendum> | ||
</mirrors> | ||
|
||
<features> | ||
<feature> | ||
The <code>texImage2D</code> and <code>texSubImage2D</code> entry points | ||
taking <code>ArrayBufferView</code> are extended to accept <code>Float32Array</code> with | ||
the pixel type <code>FLOAT</code>. | ||
</feature> | ||
<feature> | ||
The <code>texImage2D</code> and <code>texSubImage2D</code> entry points | ||
taking <code>ImageData</code>, <code>HTMLImageElement</code>, <code>HTMLCanvasElement</code> | ||
and <code>HTMLVideoElement</code> are extended to accept the pixel type <code>FLOAT</code>. | ||
</feature> | ||
<feature> | ||
The WebGL implementation may optionally accept a texture with pixel | ||
type <code>FLOAT</code> as the color attachment to an FBO. Applications must check such | ||
an FBO for completeness after attempting to make this attachment. | ||
<feature> The <code>texImage2D</code> and <code>texSubImage2D</code> | ||
entry points taking <code>ArrayBufferView</code> are extended to accept | ||
<code>Float32Array</code> with the pixel type <code>FLOAT</code>. | ||
</feature> | ||
|
||
<feature> The <code>texImage2D</code> and <code>texSubImage2D</code> | ||
entry points taking <code>ImageData</code>, | ||
<code>HTMLImageElement</code>, <code>HTMLCanvasElement</code> and | ||
<code>HTMLVideoElement</code> are extended to accept the pixel type | ||
<code>FLOAT</code>. </feature> | ||
|
||
<feature>Implementations supporting float rendering via this extension | ||
will implicitly enable the <a | ||
href="WEBGL_color_buffer_float.html">WEBGL_color_buffer_float</a> | ||
extension and follow its requirements. This ensures correct behavior | ||
when a texture with pixel type <code>FLOAT</code> is attached to an FBO. | ||
Although this feature has historically been allowed, new implementations | ||
should not implicitly support float rendering and applications should be | ||
modified to explicitly enable <a | ||
href="WEBGL_color_buffer_float.html">WEBGL_color_buffer_float</a>.</feature> | ||
</features> | ||
</overview> | ||
<idl> | ||
interface OES_texture_float { | ||
}; | ||
</idl> | ||
|
||
<idl> interface OES_texture_float { }; </idl> | ||
|
||
<history> | ||
<revision date="2010/11/29"> | ||
<change>Initial revision.</change> | ||
</revision> | ||
|
||
<revision date="2010/12/13"> | ||
<change>Extended to support pixel type FLOAT for texImage2D and texSubImage2D entry points taking ImageData, HTMLImageElement, HTMLCanvasElement and HTMLVideoElement. | ||
</change> | ||
<change>Extended to support pixel type FLOAT for texImage2D and | ||
texSubImage2D entry points taking ImageData, HTMLImageElement, | ||
HTMLCanvasElement and HTMLVideoElement. </change> | ||
</revision> | ||
|
||
<revision date="2011/09/12"> | ||
<change>Added optional ability to use a FLOAT type texture as an FBO's color attachment. | ||
</change> | ||
<change>Added optional ability to use a FLOAT type texture as an FBO's | ||
color attachment. </change> | ||
</revision> | ||
|
||
<revision date="2012/01/03"> | ||
<change>Removed webgl module per changes to Web IDL spec.</change> | ||
</revision> | ||
|
||
<revision date="2012/12/04"> | ||
<change>Specify that implementations supporting FLOAT color attachments | ||
implicitly enable WEBGL_color_buffer_float.</change> | ||
</revision> | ||
</history> | ||
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,74 @@ | ||
<?xml version="1.0"?> | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<extension href="OES_texture_half_float/"> | ||
<name>OES_texture_half_float</name> | ||
<contact> | ||
<a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL working group</a> (public_webgl 'at' khronos.org) | ||
</contact> | ||
|
||
<contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL | ||
working group</a> (public_webgl 'at' khronos.org) </contact> | ||
|
||
<contributors> | ||
<contributor>Members of the WebGL working group</contributor> | ||
</contributors> | ||
|
||
<number>2</number> | ||
|
||
<depends> | ||
<api version="1.0"/> | ||
</depends> | ||
|
||
<overview> | ||
<mirrors href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" name="OES_texture_half_float"> | ||
<addendum>Optional support for <code>HALF_FLOAT</code> textures as FBO attachments.</addendum> | ||
<mirrors href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" | ||
name="OES_texture_half_float"> | ||
<addendum>Optional support for <code>HALF_FLOAT</code> textures as FBO | ||
attachments (deprecated).</addendum> | ||
</mirrors> | ||
|
||
<features> | ||
<feature> | ||
The <code>texImage2D</code> and <code>texSubImage2D</code> entry points | ||
taking <code>ArrayBufferView</code> are extended to accept <code>null</code> with | ||
the pixel type <code>HALF_FLOAT_OES</code>. | ||
</feature> | ||
<feature> | ||
The <code>texImage2D</code> and <code>texSubImage2D</code> entry points | ||
taking <code>ImageData</code>, <code>HTMLImageElement</code>, <code>HTMLCanvasElement</code> | ||
and <code>HTMLVideoElement</code> are extended to accept the pixel type <code>HALF_FLOAT_OES</code>. | ||
</feature> | ||
<feature> | ||
The WebGL implementation may optionally accept a texture with pixel | ||
type <code>HALF_FLOAT_OES</code> as the color attachment to an FBO. Applications must | ||
check such an FBO for completeness after attempting to make this attachment. | ||
<feature> The <code>texImage2D</code> and <code>texSubImage2D</code> | ||
entry points taking <code>ArrayBufferView</code> are extended to accept | ||
<code>null</code> with the pixel type <code>HALF_FLOAT_OES</code>. | ||
</feature> | ||
|
||
<feature> The <code>texImage2D</code> and <code>texSubImage2D</code> | ||
entry points taking <code>ImageData</code>, | ||
<code>HTMLImageElement</code>, <code>HTMLCanvasElement</code> and | ||
<code>HTMLVideoElement</code> are extended to accept the pixel type | ||
<code>HALF_FLOAT_OES</code>. </feature> | ||
|
||
<feature>Implementations supporting float rendering via this extension | ||
will implicitly enable the <a | ||
href="OES_color_buffer_half_float.html">OES_color_buffer_half_float</a> | ||
extension and follow its requirements. This ensures correct behavior | ||
when a texture with pixel type <code>HALF_FLOAT_OES</code> is attached | ||
to an FBO. Although this feature has historically been allowed, new | ||
implementations should not implicitly support float rendering and | ||
applications should be modified to explicitly enable <a | ||
href="OES_color_buffer_half_float.html">OES_color_buffer_half_float</a>.</feature> | ||
</features> | ||
</overview> | ||
<idl> | ||
interface OES_texture_half_float { | ||
const GLenum HALF_FLOAT_OES = 0x8D61; | ||
}; | ||
</idl> | ||
|
||
<idl> interface OES_texture_half_float { const GLenum HALF_FLOAT_OES = | ||
0x8D61; }; </idl> | ||
|
||
<history> | ||
<revision date="2010/11/29"> | ||
<change>Initial revision.</change> | ||
</revision> | ||
|
||
<revision date="2011/09/12"> | ||
<change> | ||
Added similar text about <code>texImage2D</code> and <code>texSubImage2D</code> as in OES_texture_float spec. | ||
</change> | ||
<change> | ||
Added optional ability to use a HALF_FLOAT_OES type texture as an FBO's color attachment. | ||
</change> | ||
<change> Added similar text about <code>texImage2D</code> and | ||
<code>texSubImage2D</code> as in OES_texture_float spec. </change> | ||
|
||
<change> Added optional ability to use a HALF_FLOAT_OES type texture as | ||
an FBO's color attachment. </change> | ||
</revision> | ||
|
||
<revision date="2012/01/03"> | ||
<change>Removed webgl module per changes to Web IDL spec.</change> | ||
</revision> | ||
|
||
<revision date="2012/12/04"> | ||
<change>Specify that implementations supporting HALF_FLOAT_OES color | ||
attachments implicitly enable EXT_color_buffer_half_float.</change> | ||
</revision> | ||
</history> | ||
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.