| OLD | NEW |
| (Empty) |
| 1 Name | |
| 2 | |
| 3 CHROMIUM_texture_buffer | |
| 4 | |
| 5 Name Strings | |
| 6 | |
| 7 GL_CHROMIUM_texture_buffer | |
| 8 | |
| 9 Contributors | |
| 10 | |
| 11 John Bauman, Google | |
| 12 | |
| 13 Contact | |
| 14 | |
| 15 John Bauman, Google (jbauman 'at' google.com) | |
| 16 | |
| 17 Status | |
| 18 | |
| 19 In Progress | |
| 20 | |
| 21 Version | |
| 22 | |
| 23 Last Modified Date: June 19, 2017 | |
| 24 Version: 1 | |
| 25 | |
| 26 Number | |
| 27 | |
| 28 OpenGL ES Extension #??? | |
| 29 | |
| 30 Dependencies | |
| 31 | |
| 32 This extension is written against the OpenGL ES 2.0 Specification. | |
| 33 This extension depends on EXT_texture_storage. | |
| 34 CHROMIUM_schedule_ca_layer affects the definition of this extension. | |
| 35 EXT_texture_format_BGRA8888 affects the definition of this extension. | |
| 36 | |
| 37 Overview | |
| 38 | |
| 39 This allows clients to specify that alternative texture backings | |
| 40 can be used which may be drawn into overlays. | |
| 41 | |
| 42 IP Status | |
| 43 | |
| 44 No known IP claims. | |
| 45 | |
| 46 New Procedures and Functions | |
| 47 | |
| 48 None | |
| 49 | |
| 50 New Tokens | |
| 51 | |
| 52 Accepted as a value for <pname> for the TexParameter{if} and | |
| 53 TexParameter{if}v commands and for the <value> parameter of | |
| 54 GetTexParameter{if}v: | |
| 55 | |
| 56 TEXTURE_BUFFER_USAGE_CHROMIUM 0x78FD | |
| 57 | |
| 58 Accepted as a value to <param> for the TexParameter{if} and to <params> | |
| 59 for the TexParameter{if}v commands with a <pname> of | |
| 60 TEXTURE_BUFFER_USAGE_CHROMIUM; returned as possible values for <data> when | |
| 61 GetTexParameter{if}v is queried with a <value> of | |
| 62 TEXTURE_BUFFER_USAGE_CHROMIUM: | |
| 63 | |
| 64 NONE 0x0000 | |
| 65 TEXTURE_BUFFER_SCANOUT_CHROMIUM 0x78FE | |
| 66 | |
| 67 Additions to Chapter 2 of the OpenGL ES 2.0 Specification (OpenGL ES Operation) | |
| 68 | |
| 69 None | |
| 70 | |
| 71 Additions to Chapter 3 of the OpenGL ES 2.0 Specification (Rasterization) | |
| 72 | |
| 73 Add a new row to Table 3.10 (Texture parameters and their values): | |
| 74 Possible values for <params> when <pname> is TEXTURE_BUFFER_USAGE_CHROMIUM | |
| 75 are: | |
| 76 | |
| 77 NONE - the default. The texture may not be used as an overlay. | |
| 78 | |
| 79 TEXTURE_BUFFER_SCANOUT_CHROMIUM - this texture may be used as an overlay." | |
| 80 | |
| 81 Modify section 3.7.12 (Texture State) and place the last 3 sentences | |
| 82 with the following: | |
| 83 | |
| 84 "Next, there are the three sets of texture properties; each consists of | |
| 85 the selected minification and magnification filters, the wrap modes for | |
| 86 <s> and <t>, and the usage flags. In the initial state, the value assigned | |
| 87 to TEXTURE_MIN_FILTER is NEAREST_MIPMAP_LINEAR, and the value for | |
| 88 TEXTURE_MAG_FILTER is LINEAR. <s> and <t> wrap modes are both set to | |
| 89 REPEAT. The initial value for TEXTURE_BUFFER_USAGE_CHROMIUM is NONE." | |
| 90 | |
| 91 Add to the end of the subsection called "Immutable-format texture images": | |
| 92 | |
| 93 "If <levels> is not 1 and TEXTURE_BUFFER_USAGE_CHROMIUM is | |
| 94 TEXTURE_BUFFER_SCANOUT_CHROMIUM, generate an INVALID_OPERATION error. | |
| 95 | |
| 96 If <depth> is greater than 1 and TEXTURE_BUFFER_USAGE_CHROMIUM is | |
| 97 TEXTURE_BUFFER_SCANOUT_CHROMIUM, generate an INVALID_OPERATION error. | |
| 98 | |
| 99 If <internal_format> is not RGBA8_OES, BGRA8_EXT, or RGBA16F, generate an | |
| 100 INVALID_ENUM error." | |
| 101 | |
| 102 Dependencies on CHROMIUM_schedule_ca_layer | |
| 103 | |
| 104 Of textures created with TexStorage2DEXT or TexImage2D, only textures | |
| 105 specified with TEXTURE_BUFFER_SCANOUT_CHROMIUM may be used with | |
| 106 glScheduleCALayerCHROMIUM. | |
| 107 | |
| 108 Dependencies on EXT_texture_format_BGRA8888 | |
| 109 | |
| 110 If EXT_texture_format_BGRA8888 is not supported, deleted all references to | |
| 111 BGRA8_EXT. | |
| 112 | |
| 113 Errors | |
| 114 | |
| 115 If TexParameter{if} or TexParamter{if}v is called with a <pname> of | |
| 116 TEXTURE_BUFFER_USAGE_CHROMIUM and the value of <param> or <params> is not | |
| 117 NONE or TEXTURE_BUFFER_SCANOUT_CHROMIUM the error INVALID_VALUE is | |
| 118 generated. | |
| 119 | |
| 120 Issues | |
| 121 | |
| 122 Revision History | |
| 123 | |
| 124 Rev. Date Author Changes | |
| 125 ---- ----------- --------- ---------------------------------------- | |
| 126 1 19 Jun 2017 jbauman Initial revision | |
| 127 | |
| 128 | |
| OLD | NEW |