Debian Codegraph @

api_webgl/extensions/rejected/WEBGL_draw_elements_no_range_check/extension.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <rejected href="rejected/WEBGL_draw_elements_no_range_check/">
3 <name>WEBGL_draw_elements_no_range_check</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>Olli Etuaho, NVIDIA</contributor>
10
11 <contributor>Jeff Gilbert, Mozilla</contributor>
12
13 <contributor>Members of the WebGL working group</contributor>
14 </contributors>
15
16 <number>NN</number>
17
18 <depends>
19 <api version="1.0"/>
20 </depends>
21
22 <overview id="overview">
23 <p><code>drawElements</code> robustness is currently ensured by checking
24 indices in the element array buffer against the size of the array buffer
25 they are indexing. These checks are undesirable from a performance
26 perspective, since they introduce CPU overhead to the API and require index
27 buffers to have a copy in CPU-accessible memory.</p>
28
29 <p>This extension changes the behavior of <code>drawElements</code> to use
30 security features built into hardware, bypassing the CPU-side range check
31 and improving performance. The drawback is that if out-of-range indices are
32 referenced by <code>drawElements</code>, no error is generated and the
33 rendering results of that call will be undefined. However, supplying
34 out-of-range indices to <code>drawElements</code> will not result in
35 reading vertex data from outside the enabled vertex buffer objects, nor
36 abnormal program termination, as specified in the OpenGL extension
37 <a href="http://www.opengl.org/registry/specs/ARB/robust_buffer_access_behavior.txt">ARB_robust_buffer_access_behavior</a>.</p>
38
39 <p>It is suggested that this extension is left disabled when debugging. Any
40 <code>INVALID_OPERATION</code> errors from <code>drawElements</code> seen
41 while the extension is off mean that the application is supplying incorrect
42 indices to the API, even if rendering results would seem correct when this
43 extension is enabled.</p>
44
45 <p>This extension interacts with
46 <a href="http://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/">ANGLE_instanced_arrays</a>.</p>
47
48 <features>
49 <feature>
50 Calling <code>drawElements</code> will not produce an <code>INVALID_OPERATION</code>
51 error if a referenced index lies outside the storage of the bound buffer. Instead,
52 rendering is performed and attribute indices that are outside the valid range will produce
53 undefined rendering results.
54 </feature>
55 <feature>
56 Interaction with ANGLE_instanced_arrays: calling <code>drawElementsInstancedANGLE</code>
57 will not produce an <code>INVALID_OPERATION</code> error if a referenced index
58 lies outside the storage of the bound buffer, but will instead produce undefined
59 rendering results similarly to <code>drawElements</code>.
60 </feature>
61 </features>
62 </overview>
63
64 <idl xml:space="preserve">
65 [NoInterfaceObject]
66 interface WEBGL_draw_elements_no_range_check {
67 };
68 </idl>
69
70 <issues>
71 </issues>
72 <history>
73 <revision date="2014/03/14">
74 <change>Initial revision.</change>
75 </revision>
76 <revision date="2014/07/15">
77 <change>Added NoInterfaceObject extended attribute.</change>
78 </revision>
79 <revision date="2015/01/24">
80 <change>Moved to rejected.</change>
81 </revision>
82 </history>
83 </rejected>