Skip to content

Commit

Permalink
Modernize webidl for extensions/*. (KhronosGroup#3226)
Browse files Browse the repository at this point in the history
* Add Exposed=(Window,Worker) to extensions.

* s/void/undefined/ in idl.
  • Loading branch information
kdashg authored Mar 6, 2021
1 parent 82814eb commit aeea582
Show file tree
Hide file tree
Showing 56 changed files with 161 additions and 161 deletions.
8 changes: 4 additions & 4 deletions extensions/ANGLE_instanced_arrays/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
</p>
</overview>
<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface ANGLE_instanced_arrays {
const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
void drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
void drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
void vertexAttribDivisorANGLE(GLuint index, GLuint divisor);
undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
undefined drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
undefined vertexAttribDivisorANGLE(GLuint index, GLuint divisor);
};
</idl>
<issues>
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_blend_minmax/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_blend_minmax {
const GLenum MIN_EXT = 0x8007;
const GLenum MAX_EXT = 0x8008;
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_clip_cull_distance/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_clip_cull_distance {
const GLenum MAX_CLIP_DISTANCES_EXT = 0x0D32;
const GLenum MAX_CULL_DISTANCES_EXT = 0x82F9;
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_color_buffer_float/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_color_buffer_float {
}; // interface EXT_color_buffer_float
</idl>
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_color_buffer_half_float/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_color_buffer_half_float {
const GLenum RGBA16F_EXT = 0x881A;
const GLenum RGB16F_EXT = 0x881B;
Expand Down
20 changes: 10 additions & 10 deletions extensions/EXT_disjoint_timer_query/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
<idl xml:space="preserve">
typedef unsigned long long GLuint64EXT;

[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface WebGLTimerQueryEXT : WebGLObject {
};

[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_disjoint_timer_query {
const GLenum QUERY_COUNTER_BITS_EXT = 0x8864;
const GLenum CURRENT_QUERY_EXT = 0x8865;
Expand All @@ -63,11 +63,11 @@ interface EXT_disjoint_timer_query {
const GLenum GPU_DISJOINT_EXT = 0x8FBB;

WebGLTimerQueryEXT? createQueryEXT();
void deleteQueryEXT(WebGLTimerQueryEXT? query);
undefined deleteQueryEXT(WebGLTimerQueryEXT? query);
[WebGLHandlesContextLoss] boolean isQueryEXT(WebGLTimerQueryEXT? query);
void beginQueryEXT(GLenum target, WebGLTimerQueryEXT query);
void endQueryEXT(GLenum target);
void queryCounterEXT(WebGLTimerQueryEXT query, GLenum target);
undefined beginQueryEXT(GLenum target, WebGLTimerQueryEXT query);
undefined endQueryEXT(GLenum target);
undefined queryCounterEXT(WebGLTimerQueryEXT query, GLenum target);
any getQueryEXT(GLenum target, GLenum pname);
any getQueryObjectEXT(WebGLTimerQueryEXT query, GLenum pname);
};
Expand All @@ -79,7 +79,7 @@ interface EXT_disjoint_timer_query {
</newfun>

<newfun>
<function name="deleteQueryEXT" type="void">
<function name="deleteQueryEXT" type="undefined">
<param name="query" type="WebGLTimerQueryEXT?"/>
<code>deleteQueryEXT</code> implicitly calls <code>endQueryEXT</code> if the query
is active.
Expand All @@ -100,22 +100,22 @@ interface EXT_disjoint_timer_query {
</newfun>

<newfun>
<function name="beginQueryEXT" type="void">
<function name="beginQueryEXT" type="undefined">
<param name="target" type="GLenum"/>
<param name="query" type="WebGLTimerQueryEXT?"/>
<code>target</code> accepts <code>TIME_ELAPSED_EXT</code>.
</function>
</newfun>

<newfun>
<function name="endQueryEXT" type="void">
<function name="endQueryEXT" type="undefined">
<param name="target" type="GLenum"/>
<code>target</code> accepts <code>TIME_ELAPSED_EXT</code>.
</function>
</newfun>

<newfun>
<function name="queryCounterEXT" type="void">
<function name="queryCounterEXT" type="undefined">
<param name="query" type="WebGLTimerQueryEXT?"/>
<param name="target" type="GLenum"/>
<code>target</code> accepts <code>TIMESTAMP_EXT</code>.
Expand Down
8 changes: 4 additions & 4 deletions extensions/EXT_disjoint_timer_query_webgl2/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_disjoint_timer_query_webgl2 {
const GLenum QUERY_COUNTER_BITS_EXT = 0x8864;
const GLenum TIME_ELAPSED_EXT = 0x88BF;
const GLenum TIMESTAMP_EXT = 0x8E28;
const GLenum GPU_DISJOINT_EXT = 0x8FBB;

void queryCounterEXT(WebGLQuery query, GLenum target);
undefined queryCounterEXT(WebGLQuery query, GLenum target);
};
</idl>

Expand All @@ -60,14 +60,14 @@ interface EXT_disjoint_timer_query_webgl2 {
</newtok>

<newtok>
<function name="endQuery" type="void">
<function name="endQuery" type="undefined">
<param name="target" type="GLenum"/>
<code>target</code> accepts <code>TIME_ELAPSED_EXT</code>.
</function>
</newtok>

<newfun>
<function name="queryCounterEXT" type="void">
<function name="queryCounterEXT" type="undefined">
<param name="query" type="WebGLQuery"/>
<param name="target" type="GLenum"/>
<code>target</code> accepts <code>TIMESTAMP_EXT</code>.
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_float_blend/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_float_blend {
}; // interface EXT_float_blend
</idl>
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_frag_depth/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_frag_depth {
};
</idl>
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_sRGB/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_sRGB {
const GLenum SRGB_EXT = 0x8C40;
const GLenum SRGB_ALPHA_EXT = 0x8C42;
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_shader_texture_lod/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_shader_texture_lod {
};
</idl>
Expand Down
2 changes: 1 addition & 1 deletion extensions/EXT_texture_filter_anisotropic/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</features>
</overview>
<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_texture_filter_anisotropic {
const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
Expand Down
28 changes: 14 additions & 14 deletions extensions/OES_draw_buffers_indexed/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,29 @@
<idl xml:space="preserve">
[NoInterfaceObject]
interface OES_draw_buffers_indexed {
void enableiOES(GLenum target, GLuint index);
undefined enableiOES(GLenum target, GLuint index);

void disableiOES(GLenum target, GLuint index);
undefined disableiOES(GLenum target, GLuint index);

void blendEquationiOES(GLuint buf, GLenum mode);
undefined blendEquationiOES(GLuint buf, GLenum mode);

void blendEquationSeparateiOES(GLuint buf,
undefined blendEquationSeparateiOES(GLuint buf,
GLenum modeRGB, GLenum modeAlpha);

void blendFunciOES(GLuint buf,
undefined blendFunciOES(GLuint buf,
GLenum src, GLenum dst);

void blendFuncSeparateiOES(GLuint buf,
undefined blendFuncSeparateiOES(GLuint buf,
GLenum srcRGB, GLenum dstRGB,
GLenum srcAlpha, GLenum dstAlpha);

void colorMaskiOES(GLuint buf,
undefined colorMaskiOES(GLuint buf,
GLboolean r, GLboolean g, GLboolean b, GLboolean a);
};
</idl>

<newfun>
<function name="enableiOES" type="void">
<function name="enableiOES" type="undefined">
<param name="target" type="GLenum"/>
<param name="index" type="GLuint"/>
<p>
Expand All @@ -80,7 +80,7 @@ interface OES_draw_buffers_indexed {
</newfun>

<newfun>
<function name="disableiOES" type="void">
<function name="disableiOES" type="undefined">
<param name="target" type="GLenum"/>
<param name="index" type="GLuint"/>
<p>
Expand All @@ -97,7 +97,7 @@ interface OES_draw_buffers_indexed {
</newfun>

<newfun>
<function name="blendEquationiOES" type="void">
<function name="blendEquationiOES" type="undefined">
<param name="buf" type="GLuint"/>
<param name="mode" type="GLenum"/>
<p>
Expand All @@ -111,7 +111,7 @@ interface OES_draw_buffers_indexed {
</newfun>

<newfun>
<function name="blendEquationSeparateiOES" type="void">
<function name="blendEquationSeparateiOES" type="undefined">
<param name="buf" type="GLuint"/>
<param name="modeRGB" type="GLenum"/>
<param name="modeAlpha" type="GLenum"/>
Expand All @@ -127,7 +127,7 @@ interface OES_draw_buffers_indexed {
</newfun>

<newfun>
<function name="blendFunciOES" type="void">
<function name="blendFunciOES" type="undefined">
<param name="buf" type="GLuint"/>
<param name="src" type="GLenum"/>
<param name="dst" type="GLenum"/>
Expand All @@ -143,7 +143,7 @@ interface OES_draw_buffers_indexed {
</newfun>

<newfun>
<function name="blendFuncSeparateiOES" type="void">
<function name="blendFuncSeparateiOES" type="undefined">
<param name="buf" type="GLuint"/>
<param name="srcRGB" type="GLenum"/>
<param name="dstRGB" type="GLenum"/>
Expand All @@ -162,7 +162,7 @@ interface OES_draw_buffers_indexed {
</newfun>

<newfun>
<function name="colorMaskiOES" type="void">
<function name="colorMaskiOES" type="undefined">
<param name="buf" type="GLuint"/>
<param name="r" type="GLboolean"/>
<param name="g" type="GLboolean"/>
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_element_index_uint/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</features>
</overview>
<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_element_index_uint {
};
</idl>
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_fbo_render_mipmap/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_fbo_render_mipmap {
};
</idl>
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_standard_derivatives/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</features>
</overview>
<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_standard_derivatives {
const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
};
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_texture_float/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_texture_float { }; </idl>

<history>
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_texture_float_linear/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_texture_float_linear { };</idl>

<history>
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_texture_half_float/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_texture_half_float {
const GLenum HALF_FLOAT_OES = 0x8D61;
};
Expand Down
2 changes: 1 addition & 1 deletion extensions/OES_texture_half_float_linear/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</overview>

<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_texture_half_float_linear { };</idl>

<history>
Expand Down
12 changes: 6 additions & 6 deletions extensions/OES_vertex_array_object/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
<mirrors href="http://www.khronos.org/registry/gles/extensions/OES/OES_vertex_array_object.txt" name="OES_vertex_array_object" />
</overview>
<idl xml:space="preserve">
[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface WebGLVertexArrayObjectOES : WebGLObject {
};

[LegacyNoInterfaceObject]
[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface OES_vertex_array_object {
const GLenum VERTEX_ARRAY_BINDING_OES = 0x85B5;

WebGLVertexArrayObjectOES? createVertexArrayOES();
void deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
[WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
void bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
};
</idl>

Expand All @@ -38,7 +38,7 @@ interface OES_vertex_array_object {
</newfun>

<newfun>
<function name="deleteVertexArrayOES" type="void">
<function name="deleteVertexArrayOES" type="undefined">
<param name="arrayObject" type="WebGLVertexArrayObjectOES?"/>
</function>
</newfun>
Expand All @@ -53,7 +53,7 @@ interface OES_vertex_array_object {
</newfun>

<newfun>
<function name="bindVertexArrayOES" type="void">
<function name="bindVertexArrayOES" type="undefined">
<param name="arrayObject" type="WebGLVertexArrayObjectOES?"/>
</function>
</newfun>
Expand Down
Loading

0 comments on commit aeea582

Please sign in to comment.