| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <rejected href="rejected/EXT_texture_storage/"> |
| 3 | <name>EXT_texture_storage</name> |
| 4 | |
| 5 | <contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL |
| 6 | working group</a> (public_webgl 'at' khronos.org) </contact> |
| 7 | |
| 8 | <contributors> |
| 9 | <contributor>Kirill Dmitrenko (dmikis 'at' yandex-team.ru)</contributor> |
| 10 | <contributor>Members of the WebGL working group</contributor> |
| 11 | </contributors> |
| 12 | |
| 13 | <number>k</number> |
| 14 | |
| 15 | <depends> |
| 16 | <api version="1.0"/> |
| 17 | <core version="2.0"/> |
| 18 | </depends> |
| 19 | |
| 20 | <overview> |
| 21 | <mirrors href="http://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_storage.txt" |
| 22 | name="EXT_texture_storage"> |
| 23 | </mirrors> |
| 24 | |
| 25 | <features> |
| 26 | <feature> |
| 27 | The behaviour of <code>texImage2D</code>, |
| 28 | <code>compressedTexImage2D</code> and <code>copyTexImage2D</code> |
| 29 | methods of a WebGL context is changed. After a successful call to <code>texStorage2DEXT</code>, |
| 30 | the value of <code>TEXTURE_IMMUTABLE_FORMAT_EXT</code> for this texture |
| 31 | object is set to <code>TRUE</code>, and no further changes to the dimensions |
| 32 | or format of the texture may be made. Using <code>texImage2D</code>, |
| 33 | <code>compressedTexImage2D</code>, <code>copyTexImage2D</code> or |
| 34 | <code>texStorage2DEXT</code> with the same texture will result |
| 35 | in the error <code>INVALID_OPERATION</code> being generated. |
| 36 | </feature> |
| 37 | </features> |
| 38 | </overview> |
| 39 | |
| 40 | <idl xml:space="preserve"> |
| 41 | interface EXT_texture_storage { |
| 42 | const GLenum TEXTURE_IMMUTABLE_FORMAT_EXT = 0x912F; |
| 43 | void texStorage2DEXT(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); |
| 44 | } |
| 45 | </idl> |
| 46 | |
| 47 | <newfun> |
| 48 | <function name="texStorage2DEXT" type="void"> |
| 49 | <param name="target" type="GLenum"/> |
| 50 | <param name="levels" type="GLsizei"/> |
| 51 | <param name="internalformat" type="GLenum"/> |
| 52 | <param name="width" type="GLsizei"/> |
| 53 | <param name="height" type="GLsizei"/> |
| 54 | Simultaneously specify storage for all levels of a two-dimensional texture. |
| 55 | </function> |
| 56 | </newfun> |
| 57 | |
| 58 | <history> |
| 59 | <revision date="2015/09/16"> |
| 60 | <change>Initial revision</change> |
| 61 | </revision> |
| 62 | <revision date="2017/01/11"> |
| 63 | <change>Moved to rejected now that initial WebGL 2.0 implementations are shipping imminently.</change> |
| 64 | </revision> |
| 65 | </history> |
| 66 | </rejected> |