| 1 |
<?xml version="1.0"?> |
| 2 |
<ratified href="ANGLE_instanced_arrays/"> |
| 3 |
<name>ANGLE_instanced_arrays</name> |
| 4 |
<contact> |
| 5 |
<a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL working group</a> (public_webgl 'at' khronos.org) |
| 6 |
</contact> |
| 7 |
<contributors> |
| 8 |
<contributor>Contributors to ANGLE_instanced_arrays</contributor> |
| 9 |
<contributor>Members of the WebGL working group</contributor> |
| 10 |
</contributors> |
| 11 |
<number>19</number> |
| 12 |
<depends> |
| 13 |
<api version="1.0"/> |
| 14 |
<core version="2.0" /> |
| 15 |
</depends> |
| 16 |
<overview> |
| 17 |
<mirrors href="http://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_instanced_arrays.txt" name="ANGLE_instanced_arrays"> |
| 18 |
<addendum> |
| 19 |
The implementation must validate the indices referenced by <code>drawArraysInstancedANGLE</code> and <code>drawElementsInstancedANGLE</code> |
| 20 |
similarly to how indices referenced by <code>drawArrays</code> and <code>drawElements</code> are validated according to section |
| 21 |
<a href="http://www.khronos.org/registry/webgl/specs/1.0/#ATTRIBS_AND_RANGE_CHECKING">Enabled Vertex Attributes and Range Checking</a> of the |
| 22 |
WebGL specification. |
| 23 |
</addendum> |
| 24 |
</mirrors> |
| 25 |
<p> |
| 26 |
Although the extension contains ANGLE in the name it may be exposed by any implementation, whether or not the implementation uses the ANGLE library. |
| 27 |
</p> |
| 28 |
</overview> |
| 29 |
<idl xml:space="preserve"> |
| 30 |
[NoInterfaceObject] |
| 31 |
interface ANGLE_instanced_arrays { |
| 32 |
const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; |
| 33 |
void drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount); |
| 34 |
void drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount); |
| 35 |
void vertexAttribDivisorANGLE(GLuint index, GLuint divisor); |
| 36 |
}; |
| 37 |
</idl> |
| 38 |
<issues> |
| 39 |
<p>How does ANGLE_instanced_arrays interact with OES_vertex_array_object?</p> |
| 40 |
<ul> |
| 41 |
<li> |
| 42 |
<p>RESOLVED: When the ANGLE_instanced_arrays and OES_vertex_array_object |
| 43 |
extensions are both enabled, attribute divisors are tracked by the |
| 44 |
vertex array objects like any other vertex array state. |
| 45 |
</p> |
| 46 |
</li> |
| 47 |
</ul> |
| 48 |
</issues> |
| 49 |
<history> |
| 50 |
<revision date="2012/03/06"> |
| 51 |
<change>Initial revision.</change> |
| 52 |
</revision> |
| 53 |
<revision date="2013/01/26"> |
| 54 |
<change>Moved from proposal to draft.</change> |
| 55 |
</revision> |
| 56 |
<revision date="2013/03/11"> |
| 57 |
<change>Renumbered to 19 to fix misnumbering problem.</change> |
| 58 |
</revision> |
| 59 |
<revision date="2013/08/06"> |
| 60 |
<change>Moved to community approved.</change> |
| 61 |
</revision> |
| 62 |
<revision date="2013/08/22"> |
| 63 |
<change>Clarified non-ANGLE support.</change> |
| 64 |
</revision> |
| 65 |
<revision date="2014/03/13"> |
| 66 |
<change>Addendum about index validation.</change> |
| 67 |
</revision> |
| 68 |
<revision date="2014/07/15"> |
| 69 |
<change>Added NoInterfaceObject extended attribute.</change> |
| 70 |
</revision> |
| 71 |
<revision date="2014/08/08"> |
| 72 |
<change>Ratified by Khronos Board of Promoters.</change> |
| 73 |
</revision> |
| 74 |
<revision date="2015/09/23"> |
| 75 |
<change>Clarified interaction with OES_vertex_array_object.</change> |
| 76 |
</revision> |
| 77 |
</history> |
| 78 |
</ratified> |