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// validationES2.h: Validation functions for OpenGL ES 2.0 entry point parameters
8
9#ifndef LIBGLESV2_VALIDATION_ES2_H
10#define LIBGLESV2_VALIDATION_ES2_H
11
12namespace gl
13{
14
15class Context;
16
17bool ValidateES2TexImageParameters(gl::Context *context, GLenum target, GLint level, GLenum internalformat, bool isCompressed, bool isSubImage,
18                                   GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
19                                   GLint border, GLenum format, GLenum type, const GLvoid *pixels);
20
21bool ValidateES2CopyTexImageParameters(gl::Context* context, GLenum target, GLint level, GLenum internalformat, bool isSubImage,
22                                       GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height,
23                                       GLint border);
24
25bool ValidateES2TexStorageParameters(gl::Context *context, GLenum target, GLsizei levels, GLenum internalformat,
26                                     GLsizei width, GLsizei height);
27
28bool ValidateES2FramebufferTextureParameters(gl::Context *context, GLenum target, GLenum attachment,
29                                             GLenum textarget, GLuint texture, GLint level);
30
31bool ValidES2ReadFormatType(gl::Context *context, GLenum format, GLenum type);
32
33}
34
35#endif // LIBGLESV2_VALIDATION_ES2_H
36