1*35238bceSAndroid Build Coastguard Worker------------------------------------------------------------------------- 2*35238bceSAndroid Build Coastguard WorkerdrawElements Quality Program Documentation 3*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 4*35238bceSAndroid Build Coastguard Worker 5*35238bceSAndroid Build Coastguard WorkerCopyright 2014 The Android Open Source Project 6*35238bceSAndroid Build Coastguard Worker 7*35238bceSAndroid Build Coastguard WorkerLicensed under the Apache License, Version 2.0 (the "License"); 8*35238bceSAndroid Build Coastguard Workeryou may not use this file except in compliance with the License. 9*35238bceSAndroid Build Coastguard WorkerYou may obtain a copy of the License at 10*35238bceSAndroid Build Coastguard Worker 11*35238bceSAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 12*35238bceSAndroid Build Coastguard Worker 13*35238bceSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software 14*35238bceSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS, 15*35238bceSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16*35238bceSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and 17*35238bceSAndroid Build Coastguard Workerlimitations under the License. 18*35238bceSAndroid Build Coastguard Worker------------------------------------------------------------------------- 19*35238bceSAndroid Build Coastguard Worker 20*35238bceSAndroid Build Coastguard Worker OpenGL ES 2.0 Negative API tests - Function listing 21*35238bceSAndroid Build Coastguard Worker 22*35238bceSAndroid Build Coastguard WorkerLegend: 23*35238bceSAndroid Build Coastguard Worker o = Tests done 24*35238bceSAndroid Build Coastguard Worker - = Test not done 25*35238bceSAndroid Build Coastguard Worker x = Will not generate errors, no negative test 26*35238bceSAndroid Build Coastguard Worker 27*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 28*35238bceSAndroid Build Coastguard Worker Special functions 29*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 30*35238bceSAndroid Build Coastguard Worker 31*35238bceSAndroid Build Coastguard Workerx glFinish (void); 32*35238bceSAndroid Build Coastguard Workerx glFlush (void); 33*35238bceSAndroid Build Coastguard Workero glHint (GLenum target, GLenum mode); 34*35238bceSAndroid Build Coastguard Worker 35*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 36*35238bceSAndroid Build Coastguard Worker State functions 37*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 38*35238bceSAndroid Build Coastguard Worker 39*35238bceSAndroid Build Coastguard Workero glDisable (GLenum cap); 40*35238bceSAndroid Build Coastguard Workero glEnable (GLenum cap); 41*35238bceSAndroid Build Coastguard Workero glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders); 42*35238bceSAndroid Build Coastguard Workero glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params); 43*35238bceSAndroid Build Coastguard Workero glGetBooleanv (GLenum pname, GLboolean* params); 44*35238bceSAndroid Build Coastguard Workerx glGetError (void); 45*35238bceSAndroid Build Coastguard Workero glGetFloatv (GLenum pname, GLfloat* params); 46*35238bceSAndroid Build Coastguard Workero glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params); 47*35238bceSAndroid Build Coastguard Workero glGetIntegerv (GLenum pname, GLint* params); 48*35238bceSAndroid Build Coastguard Workero glGetProgramiv (GLuint program, GLenum pname, GLint* params); 49*35238bceSAndroid Build Coastguard Workero glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog); 50*35238bceSAndroid Build Coastguard Workero glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params); 51*35238bceSAndroid Build Coastguard Workero glGetShaderiv (GLuint shader, GLenum pname, GLint* params); 52*35238bceSAndroid Build Coastguard Workero glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog); 53*35238bceSAndroid Build Coastguard Workero glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision); 54*35238bceSAndroid Build Coastguard Workero glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source); 55*35238bceSAndroid Build Coastguard Workero glGetString (GLenum name); 56*35238bceSAndroid Build Coastguard Workero glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params); 57*35238bceSAndroid Build Coastguard Workero glGetTexParameteriv (GLenum target, GLenum pname, GLint* params); 58*35238bceSAndroid Build Coastguard Workero glGetUniformfv (GLuint program, GLint location, GLfloat* params); 59*35238bceSAndroid Build Coastguard Workero glGetUniformiv (GLuint program, GLint location, GLint* params); 60*35238bceSAndroid Build Coastguard Workero glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params); 61*35238bceSAndroid Build Coastguard Workero glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params); 62*35238bceSAndroid Build Coastguard Workero glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer); 63*35238bceSAndroid Build Coastguard Workero glIsEnabled (GLenum cap); 64*35238bceSAndroid Build Coastguard Worker 65*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 66*35238bceSAndroid Build Coastguard Worker Transforms & Fragment API functions 67*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 68*35238bceSAndroid Build Coastguard Worker 69*35238bceSAndroid Build Coastguard Workerx glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 70*35238bceSAndroid Build Coastguard Workero glBlendEquation (GLenum mode); 71*35238bceSAndroid Build Coastguard Workero glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); 72*35238bceSAndroid Build Coastguard Workero glBlendFunc (GLenum sfactor, GLenum dfactor); 73*35238bceSAndroid Build Coastguard Workero glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 74*35238bceSAndroid Build Coastguard Workerx glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 75*35238bceSAndroid Build Coastguard Workero glDepthFunc (GLenum func); 76*35238bceSAndroid Build Coastguard Workerx glDepthMask (GLboolean flag); 77*35238bceSAndroid Build Coastguard Workerx glDepthRangef (GLclampf zNear, GLclampf zFar); 78*35238bceSAndroid Build Coastguard Workerx glSampleCoverage (GLclampf value, GLboolean invert); 79*35238bceSAndroid Build Coastguard Workero glScissor (GLint x, GLint y, GLsizei width, GLsizei height); 80*35238bceSAndroid Build Coastguard Workero glStencilFunc (GLenum func, GLint ref, GLuint mask); 81*35238bceSAndroid Build Coastguard Workero glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask); 82*35238bceSAndroid Build Coastguard Workerx glStencilMask (GLuint mask); 83*35238bceSAndroid Build Coastguard Workero glStencilMaskSeparate (GLenum face, GLuint mask); 84*35238bceSAndroid Build Coastguard Workero glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); 85*35238bceSAndroid Build Coastguard Workero glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass); 86*35238bceSAndroid Build Coastguard Workero glViewport (GLint x, GLint y, GLsizei width, GLsizei height); 87*35238bceSAndroid Build Coastguard Worker 88*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 89*35238bceSAndroid Build Coastguard Worker FBO API functions 90*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 91*35238bceSAndroid Build Coastguard Worker 92*35238bceSAndroid Build Coastguard Workero glBindFramebuffer (GLenum target, GLuint framebuffer); 93*35238bceSAndroid Build Coastguard Workero glBindRenderbuffer (GLenum target, GLuint renderbuffer); 94*35238bceSAndroid Build Coastguard Workero glCheckFramebufferStatus (GLenum target); 95*35238bceSAndroid Build Coastguard Workero glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers); 96*35238bceSAndroid Build Coastguard Workero glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers); 97*35238bceSAndroid Build Coastguard Workero glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); 98*35238bceSAndroid Build Coastguard Workero glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); 99*35238bceSAndroid Build Coastguard Workero glGenFramebuffers (GLsizei n, GLuint* framebuffers); 100*35238bceSAndroid Build Coastguard Workero glGenRenderbuffers (GLsizei n, GLuint* renderbuffers); 101*35238bceSAndroid Build Coastguard Workero glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); 102*35238bceSAndroid Build Coastguard Worker 103*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 104*35238bceSAndroid Build Coastguard Worker Buffer and Buffer Object API functions 105*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 106*35238bceSAndroid Build Coastguard Worker 107*35238bceSAndroid Build Coastguard Workero glBindBuffer (GLenum target, GLuint buffer); 108*35238bceSAndroid Build Coastguard Workero glBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); 109*35238bceSAndroid Build Coastguard Workero glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data); 110*35238bceSAndroid Build Coastguard Workero glClear (GLbitfield mask); 111*35238bceSAndroid Build Coastguard Workerx glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 112*35238bceSAndroid Build Coastguard Workerx glClearDepthf (GLclampf depth); 113*35238bceSAndroid Build Coastguard Workerx glClearStencil (GLint s); 114*35238bceSAndroid Build Coastguard Workero glDeleteBuffers (GLsizei n, const GLuint* buffers); 115*35238bceSAndroid Build Coastguard Workero glGenBuffers (GLsizei n, GLuint* buffers); 116*35238bceSAndroid Build Coastguard Workero glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); 117*35238bceSAndroid Build Coastguard Worker 118*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 119*35238bceSAndroid Build Coastguard Worker Shader API functions 120*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 121*35238bceSAndroid Build Coastguard Worker 122*35238bceSAndroid Build Coastguard Workero glBindAttribLocation (GLuint program, GLuint index, const GLchar* name); 123*35238bceSAndroid Build Coastguard Workero glAttachShader (GLuint program, GLuint shader); 124*35238bceSAndroid Build Coastguard Workero glCreateShader (GLenum type); 125*35238bceSAndroid Build Coastguard Workero glCompileShader (GLuint shader); 126*35238bceSAndroid Build Coastguard Workerx glCreateProgram (void); 127*35238bceSAndroid Build Coastguard Workero glDeleteProgram (GLuint program); 128*35238bceSAndroid Build Coastguard Workero glDeleteShader (GLuint shader); 129*35238bceSAndroid Build Coastguard Workero glDetachShader (GLuint program, GLuint shader); 130*35238bceSAndroid Build Coastguard Workero glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); 131*35238bceSAndroid Build Coastguard Workero glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); 132*35238bceSAndroid Build Coastguard Workero glGetAttribLocation (GLuint program, const GLchar* name); 133*35238bceSAndroid Build Coastguard Workero glGetUniformLocation (GLuint program, const GLchar* name); 134*35238bceSAndroid Build Coastguard Workero glLinkProgram (GLuint program); 135*35238bceSAndroid Build Coastguard Workero glReleaseShaderCompiler (void); 136*35238bceSAndroid Build Coastguard Workero glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length); 137*35238bceSAndroid Build Coastguard Workero glShaderSource (GLuint shader, GLsizei count, const GLchar** string, const GLint* length); 138*35238bceSAndroid Build Coastguard Workero glUniform1f (GLint location, GLfloat x); 139*35238bceSAndroid Build Coastguard Workero glUniform1fv (GLint location, GLsizei count, const GLfloat* v); 140*35238bceSAndroid Build Coastguard Workero glUniform1i (GLint location, GLint x); 141*35238bceSAndroid Build Coastguard Workero glUniform1iv (GLint location, GLsizei count, const GLint* v); 142*35238bceSAndroid Build Coastguard Workero glUniform2f (GLint location, GLfloat x, GLfloat y); 143*35238bceSAndroid Build Coastguard Workero glUniform2fv (GLint location, GLsizei count, const GLfloat* v); 144*35238bceSAndroid Build Coastguard Workero glUniform2i (GLint location, GLint x, GLint y); 145*35238bceSAndroid Build Coastguard Workero glUniform2iv (GLint location, GLsizei count, const GLint* v); 146*35238bceSAndroid Build Coastguard Workero glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z); 147*35238bceSAndroid Build Coastguard Workero glUniform3fv (GLint location, GLsizei count, const GLfloat* v); 148*35238bceSAndroid Build Coastguard Workero glUniform3i (GLint location, GLint x, GLint y, GLint z); 149*35238bceSAndroid Build Coastguard Workero glUniform3iv (GLint location, GLsizei count, const GLint* v); 150*35238bceSAndroid Build Coastguard Workero glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 151*35238bceSAndroid Build Coastguard Workero glUniform4fv (GLint location, GLsizei count, const GLfloat* v); 152*35238bceSAndroid Build Coastguard Workero glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w); 153*35238bceSAndroid Build Coastguard Workero glUniform4iv (GLint location, GLsizei count, const GLint* v); 154*35238bceSAndroid Build Coastguard Workero glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); 155*35238bceSAndroid Build Coastguard Workero glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); 156*35238bceSAndroid Build Coastguard Workero glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); 157*35238bceSAndroid Build Coastguard Workero glUseProgram (GLuint program); 158*35238bceSAndroid Build Coastguard Workero glValidateProgram (GLuint program); 159*35238bceSAndroid Build Coastguard Worker 160*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 161*35238bceSAndroid Build Coastguard Worker Texture API functions 162*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 163*35238bceSAndroid Build Coastguard Worker 164*35238bceSAndroid Build Coastguard Workero glActiveTexture (GLenum texture); 165*35238bceSAndroid Build Coastguard Workero glBindTexture (GLenum target, GLuint texture); 166*35238bceSAndroid Build Coastguard Workero glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data); 167*35238bceSAndroid Build Coastguard Workero glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data); 168*35238bceSAndroid Build Coastguard Workero glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); 169*35238bceSAndroid Build Coastguard Workero glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); 170*35238bceSAndroid Build Coastguard Workero glDeleteTextures (GLsizei n, const GLuint* textures); 171*35238bceSAndroid Build Coastguard Workero glGenerateMipmap (GLenum target); 172*35238bceSAndroid Build Coastguard Workero glGenTextures (GLsizei n, GLuint* textures); 173*35238bceSAndroid Build Coastguard Workero glPixelStorei (GLenum pname, GLint param); 174*35238bceSAndroid Build Coastguard Workero glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels); 175*35238bceSAndroid Build Coastguard Workero glTexParameterf (GLenum target, GLenum pname, GLfloat param); 176*35238bceSAndroid Build Coastguard Workero glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params); 177*35238bceSAndroid Build Coastguard Workero glTexParameteri (GLenum target, GLenum pname, GLint param); 178*35238bceSAndroid Build Coastguard Workero glTexParameteriv (GLenum target, GLenum pname, const GLint* params); 179*35238bceSAndroid Build Coastguard Workero glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels); 180*35238bceSAndroid Build Coastguard Worker 181*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 182*35238bceSAndroid Build Coastguard Worker Vertex Array API functions 183*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 184*35238bceSAndroid Build Coastguard Worker 185*35238bceSAndroid Build Coastguard Workero glDisableVertexAttribArray (GLuint index); 186*35238bceSAndroid Build Coastguard Workero glDrawArrays (GLenum mode, GLint first, GLsizei count); 187*35238bceSAndroid Build Coastguard Workero glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices); 188*35238bceSAndroid Build Coastguard Workero glEnableVertexAttribArray (GLuint index); 189*35238bceSAndroid Build Coastguard Workero glVertexAttrib1f (GLuint indx, GLfloat x); 190*35238bceSAndroid Build Coastguard Workero glVertexAttrib1fv (GLuint indx, const GLfloat* values); 191*35238bceSAndroid Build Coastguard Workero glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y); 192*35238bceSAndroid Build Coastguard Workero glVertexAttrib2fv (GLuint indx, const GLfloat* values); 193*35238bceSAndroid Build Coastguard Workero glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z); 194*35238bceSAndroid Build Coastguard Workero glVertexAttrib3fv (GLuint indx, const GLfloat* values); 195*35238bceSAndroid Build Coastguard Workero glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 196*35238bceSAndroid Build Coastguard Workero glVertexAttrib4fv (GLuint indx, const GLfloat* values); 197*35238bceSAndroid Build Coastguard Workero glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr); 198*35238bceSAndroid Build Coastguard Worker 199*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 200*35238bceSAndroid Build Coastguard Worker Rasterization API functions 201*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 202*35238bceSAndroid Build Coastguard Worker 203*35238bceSAndroid Build Coastguard Workero glCullFace (GLenum mode); 204*35238bceSAndroid Build Coastguard Workero glFrontFace (GLenum mode); 205*35238bceSAndroid Build Coastguard Workero glLineWidth (GLfloat width); 206*35238bceSAndroid Build Coastguard Workerx glPolygonOffset (GLfloat factor, GLfloat units); 207*35238bceSAndroid Build Coastguard Worker 208*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 209*35238bceSAndroid Build Coastguard Worker Named object usage 210*35238bceSAndroid Build Coastguard Worker----------------------------------------------- 211*35238bceSAndroid Build Coastguard Worker 212*35238bceSAndroid Build Coastguard Workero glIsBuffer (GLuint buffer); 213*35238bceSAndroid Build Coastguard Workero glIsFramebuffer (GLuint framebuffer); 214*35238bceSAndroid Build Coastguard Workero glIsProgram (GLuint program); 215*35238bceSAndroid Build Coastguard Workero glIsRenderbuffer (GLuint renderbuffer); 216*35238bceSAndroid Build Coastguard Workero glIsShader (GLuint shader); 217*35238bceSAndroid Build Coastguard Workero glIsTexture (GLuint texture); 218