1# Copyright (C) 2013 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15 16# 17# ifcheck defaults to 1 so we don't explicitly list pnames requiring 18# a single value. unknown pnames will be validated against one value, which 19# is not perfect but better than nothing. 20# 21 22glBufferData nullAllowed data check data size 23glBufferSubData check data size 24# glCompressedTexImage2D 25# glCompressedTexSubImage2D 26glClipPlanef check eqn 4 27glClipPlanex check eqn 4 28glDebugMessageControl check ids count 29glDebugMessageInsert check message length 30glDeleteBuffers check buffers n 31glDeleteFramebuffers check framebuffers n 32glDeleteFramebuffersOES check framebuffers n 33glDeleteRenderbuffers check renderbuffers n 34glDeleteRenderbuffersOES check renderbuffers n 35glDeleteTextures check textures n 36glDrawElements check_AIOOBE indices count 37glDrawElementsBaseVertex check_AIOOBE indices count-basevertex 38glDrawRangeElementsBaseVertex check_AIOOBE indices count-basevertex 39glDrawTexfvOES check coords 5 40glDrawTexivOES check coords 5 41glDrawTexsvOES check coords 5 42glDrawTexxvOES check coords 5 43glFog ifcheck params 4 pname GL_FOG_COLOR 44glGenBuffers check buffers n 45glGenFramebuffersOES check framebuffers n 46glGenFramebuffers check framebuffers n 47glGenRenderbuffersOES check renderbuffers n 48glGenRenderbuffers check renderbuffers n 49glGenTextures check textures n 50// glGetActiveAttrib 51// glGetActiveUniform 52glGetAttachedShaders nullAllowed count check count 1 check shaders maxcount 53// glGetBooleanv 54glGetBufferParameter check params 1 55glGetClipPlanef check eqn 4 56glGetClipPlanex check eqn 4 57glGetClipPlanefOES check eqn 4 58glGetClipPlanexOES check eqn 4 59// glGetFloatv 60glGetFramebufferAttachmentParameterivOES check params 1 61// glGetIntegerv 62glGetLight ifcheck params 3 pname GL_SPOT_DIRECTION ifcheck params 4 pname GL_AMBIENT,GL_DIFFUSE,GL_SPECULAR,GL_EMISSION 63glGetMaterial ifcheck params 4 pname GL_AMBIENT,GL_DIFFUSE,GL_SPECULAR,GL_EMISSION,GL_AMBIENT_AND_DIFFUSE 64glGetProgramBinary nullAllowed length 65// glGetProgramInfoLog 66glGetProgramiv check params 1 67glGetProgramResourceiv nullAllowed length 68glGetRenderbufferParameteriv check params 1 69glGetRenderbufferParameterivOES check params 1 70// glGetShaderInfoLog 71glGetShaderiv check params 1 72glGetShaderPrecisionFormat check range 1 check precision 1 73// glGetShaderSource 74// glGetString 75glGetSynciv nullAllowed length 76glGetTexEnv ifcheck params 4 pname GL_TEXTURE_ENV_COLOR 77glGetTexGen ifcheck params 4 pname GL_OBJECT_PLANE,GL_EYE_PLANE 78glGetTexParameter check params 1 79glGetnUniformfv check params bufSize 80glGetnUniformiv check params bufSize 81glGetnUniformuiv check params bufSize 82glGetUniform check params 1 83glGetVertexAttrib ifcheck params 4 pname GL_CURRENT_VERTEX_ATTRIB 84glLight ifcheck params 3 pname GL_SPOT_DIRECTION ifcheck params 4 pname GL_AMBIENT,GL_DIFFUSE,GL_SPECULAR,GL_EMISSION 85glLightModel ifcheck params 4 pname GL_LIGHT_MODEL_AMBIENT 86glLoadMatrix check m 16 87glMaterial ifcheck params 4 pname GL_AMBIENT,GL_DIFFUSE,GL_SPECULAR,GL_EMISSION,GL_AMBIENT_AND_DIFFUSE 88glMultMatrix check m 16 89glObjectLabelKHR nullAllowed label 90glObjectLabel nullAllowed label check label length 91glPointParameter check params 1 92glPushDebugGroup check message length 93glQueryMatrixxOES check mantissa 16 check exponent 16 return -1 94# glReadPixels 95glReadnPixels check data bufSize 96glShaderBinary check binary length 97// glShaderSource 98glTexEnv ifcheck params 4 pname GL_TEXTURE_ENV_COLOR 99glTexImage2D nullAllowed pixels 100glTexImage3D nullAllowed pixels 101glTexParameter check params 1 102glTexSubImage2D nullAllowed pixels 103glUniform1 check v count 104glUniform2 check v count*2 105glUniform3 check v count*3 106glUniform4 check v count*4 107glUniformMatrix2 check value count*4 108glUniformMatrix3 check value count*9 109glUniformMatrix4 check value count*16 110glVertexAttrib1 check values 1 111glVertexAttrib2 check values 2 112glVertexAttrib3 check values 3 113glVertexAttrib4 check values 4 114# glVertexAttribPointer 115