| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
<extension href="template/"> |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
<name>template</name> |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
<aliases> |
| 24 |
<alias>VENDOR_EXT_NAME</alias> |
| 25 |
|
| 26 |
<alias>VENDOR_EXT_NAME</alias> |
| 27 |
</aliases> |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
<contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL |
| 34 |
working group</a> (public_webgl 'at' khronos.org) </contact> |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
<contributors> |
| 41 |
<contributor>Members of the WebGL working group</contributor> |
| 42 |
</contributors> |
| 43 |
|
| 44 |
<number>k </number> |
| 45 |
|
| 46 |
<depends> |
| 47 |
<api version="1.0"/> |
| 48 |
|
| 49 |
<core version="2.0"/> |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
<core version="2.0"> |
| 54 |
<glsl version="300 es"/> |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
<addendum> Difference in core spec from extension. </addendum> |
| 59 |
</core> |
| 60 |
|
| 61 |
<removed version="2.0"/> |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
<ext name="WEBGL_required_ext" require="true"/> |
| 66 |
|
| 67 |
<ext name="WEBGL_base_ext"/> |
| 68 |
|
| 69 |
|
| 70 |
</depends> |
| 71 |
|
| 72 |
<overview> |
| 73 |
|
| 74 |
|
| 75 |
<mirrors href="http://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt" |
| 76 |
name="OES_texture_float"> |
| 77 |
|
| 78 |
|
| 79 |
<addendum>Optional support for <code>FLOAT</code> textures as FBO |
| 80 |
attachments.</addendum> |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
</mirrors> |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
<div class="nonnormative"> |
| 90 |
<p> This template for WebGL extensions is derived from the <a |
| 91 |
href="http://www.opengl.org/registry/doc/template/txt">OpenGL extension |
| 92 |
template</a>. Refer to the OpenGL extension template for full |
| 93 |
documentation of the content that should be contained in the sections |
| 94 |
below. Because WebGL is fundamentally a Web API, its extensions are |
| 95 |
specified in XML transformed with XSLT into HTML for easier |
| 96 |
hyperlinking. </p> |
| 97 |
|
| 98 |
<p> Because most WebGL extensions are expected to simply mirror existing |
| 99 |
OpenGL and OpenGL ES extensions, it is desirable to keep the WebGL |
| 100 |
extension specifications as small as possible and simply refer to the |
| 101 |
other specifications for the behavioral definitions. </p> |
| 102 |
</div> |
| 103 |
|
| 104 |
<features> |
| 105 |
|
| 106 |
|
| 107 |
<feature>Frobs the <b>baz</b></feature> |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
<glsl extname="GL_OES_foo_bar"> |
| 112 |
<alias extname="GL_NV_foo_bar"/> |
| 113 |
|
| 114 |
<alias extname="GL_ATI_foo_bar"/> |
| 115 |
|
| 116 |
<stage type="fragment"/> |
| 117 |
|
| 118 |
<stage type="vertex"/> |
| 119 |
|
| 120 |
<function name="myfun" type="vec4"> |
| 121 |
<param type="vec4"/> |
| 122 |
</function> |
| 123 |
</glsl> |
| 124 |
</features> |
| 125 |
</overview> |
| 126 |
|
| 127 |
<idl xml:space="preserve"> |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
module webgl { |
| 137 |
|
| 138 |
interface OES_foo_bar { |
| 139 |
const GLenum NEW_ENUM = 0xF00; |
| 140 |
|
| 141 |
void doSomethingNew(GLenum state, GLuint value); |
| 142 |
}; // interface OES_foo_bar |
| 143 |
|
| 144 |
}; // module webgl |
| 145 |
</idl> |
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
<newfun> |
| 150 |
<function name="loseContext" type="void"> XHTML description </function> |
| 151 |
</newfun> |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
<newtypes> |
| 156 |
<typedef name="in_pipe"> <type>unsigned long long</type> XHTML </typedef> |
| 157 |
|
| 158 |
<typedef name="out_pipe"> <type>unsigned long long</type> XHTML </typedef> |
| 159 |
|
| 160 |
<interface name="Plumber"> |
| 161 |
<member>Plumber work(in_pipe,out_pipe);</member> |
| 162 |
|
| 163 |
<p>After attempting a connection, the plumber is no longer the same.</p> |
| 164 |
</interface> |
| 165 |
|
| 166 |
<interface name="Agency" noobject="true"> <member>void |
| 167 |
register(Plumber);</member> <member>Plumber find();</member> XHTML |
| 168 |
</interface> |
| 169 |
</newtypes> |
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
<newtok> |
| 174 |
<function name="getParameter" type="any"> <param name="pname" |
| 175 |
type="GLenum"/> XHTML </function> |
| 176 |
</newtok> |
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
<security/> |
| 187 |
|
| 188 |
<ipstatus/> |
| 189 |
|
| 190 |
<additions/> |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
<errors/> |
| 195 |
|
| 196 |
<newstate/> |
| 197 |
|
| 198 |
<newimplstate/> |
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
<samplecode/> |
| 203 |
|
| 204 |
<tests/> |
| 205 |
|
| 206 |
<issues/> |
| 207 |
|
| 208 |
<history> |
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
<revision date="YYYY/MM/DD"> |
| 219 |
|
| 220 |
|
| 221 |
<change>Quuxed the bar</change> |
| 222 |
|
| 223 |
<change>Fooed the frob</change> |
| 224 |
</revision> |
| 225 |
</history> |
| 226 |
</extension> |