1 // 2 // Copyright (c) 2013 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 7 // validationES3.h: Validation functions for OpenGL ES 3.0 entry point parameters 8 9 #ifndef LIBGLESV2_VALIDATION_ES3_H 10 #define LIBGLESV2_VALIDATION_ES3_H 11 12 #include <GLES3/gl3.h> 13 14 namespace gl 15 { 16 17 class Context; 18 19 bool ValidateES3TexImageParameters(Context *context, GLenum target, GLint level, GLenum internalformat, bool isCompressed, bool isSubImage, 20 GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, 21 GLint border, GLenum format, GLenum type, const GLvoid *pixels); 22 23 bool ValidateES3CopyTexImageParameters(Context *context, GLenum target, GLint level, GLenum internalformat, 24 bool isSubImage, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, 25 GLsizei width, GLsizei height, GLint border); 26 27 bool ValidateES3TexStorageParameters(Context *context, GLenum target, GLsizei levels, GLenum internalformat, 28 GLsizei width, GLsizei height, GLsizei depth); 29 30 bool ValidateFramebufferTextureLayer(Context *context, GLenum target, GLenum attachment, 31 GLuint texture, GLint level, GLint layer); 32 33 bool ValidES3ReadFormatType(Context *context, GLenum internalFormat, GLenum format, GLenum type); 34 35 bool ValidateInvalidateFramebufferParameters(Context *context, GLenum target, GLsizei numAttachments, 36 const GLenum* attachments); 37 38 bool ValidateClearBuffer(Context *context); 39 40 bool ValidateGetUniformuiv(Context *context, GLuint program, GLint location, GLuint* params); 41 42 } 43 44 #endif // LIBGLESV2_VALIDATION_ES3_H 45