1 #ifndef GLES_V2_VALIDATE_H 2 #define GLES_V2_VALIDATE_H 3 4 /* 5 * Copyright (C) 2011 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20 #include <GLES2/gl2.h> 21 #include <GLES2/gl2ext.h> 22 #include <GLcommon/GLESvalidate.h> 23 24 struct GLESv2Validate:public GLESvalidate{ 25 static bool blendEquationMode(GLenum mode); 26 static bool blendSrc(GLenum s); 27 static bool blendDst(GLenum d); 28 static bool textureParams(GLenum param); 29 static bool hintTargetMode(GLenum target,GLenum mode); 30 static bool capability(GLenum cap); 31 static bool pixelStoreParam(GLenum param); 32 static bool readPixelFrmt(GLenum format); 33 static bool shaderType(GLenum type); 34 static bool precisionType(GLenum type); 35 static bool arrayIndex(GLEScontext * ctx,GLuint index); 36 static bool pixelType(GLEScontext * ctx,GLenum type); 37 static bool pixelFrmt(GLEScontext* ctx,GLenum format); 38 static bool attribName(const GLchar* name); 39 static bool attribIndex(int index); 40 static bool programParam(GLenum pname); 41 }; 42 43 #endif 44