1 // 2 // Copyright 2018 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // validationES3.h: 7 // Inlined validation functions for OpenGL ES 3.0 entry points. 8 9 #ifndef LIBANGLE_VALIDATION_ES3_H_ 10 #define LIBANGLE_VALIDATION_ES3_H_ 11 12 #include "libANGLE/ErrorStrings.h" 13 #include "libANGLE/validationES3_autogen.h" 14 15 namespace gl 16 { 17 bool ValidateES3TexImageParametersBase(const Context *context, 18 TextureTarget target, 19 GLint level, 20 GLenum internalformat, 21 bool isCompressed, 22 bool isSubImage, 23 GLint xoffset, 24 GLint yoffset, 25 GLint zoffset, 26 GLsizei width, 27 GLsizei height, 28 GLsizei depth, 29 GLint border, 30 GLenum format, 31 GLenum type, 32 GLsizei imageSize, 33 const void *pixels); 34 35 bool ValidateProgramParameteriBase(const Context *context, 36 ShaderProgramID program, 37 GLenum pname, 38 GLint value); 39 } // namespace gl 40 41 #endif // LIBANGLE_VALIDATION_ES3_H_ 42