#ifndef LIBANGLE_VALIDATION_ES2_H_
#define LIBANGLE_VALIDATION_ES2_H_
#include "libANGLE/ErrorStrings.h"
#include "libANGLE/validationES.h"
#include "libANGLE/validationES2_autogen.h"
namespace gl
{
ANGLE_INLINE bool ValidateDrawArrays(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLint first,
GLsizei count)
{ … }
ANGLE_INLINE bool ValidateUniform2f(const Context *context,
angle::EntryPoint entryPoint,
UniformLocation location,
GLfloat x,
GLfloat y)
{ … }
ANGLE_INLINE bool ValidateBindBuffer(const Context *context,
angle::EntryPoint entryPoint,
BufferBinding target,
BufferID buffer)
{ … }
ANGLE_INLINE bool ValidateDrawElements(const Context *context,
angle::EntryPoint entryPoint,
PrimitiveMode mode,
GLsizei count,
DrawElementsType type,
const void *indices)
{ … }
ANGLE_INLINE bool ValidateVertexAttribPointer(const Context *context,
angle::EntryPoint entryPoint,
GLuint index,
GLint size,
VertexAttribType type,
GLboolean normalized,
GLsizei stride,
const void *ptr)
{ … }
void RecordBindTextureTypeError(const Context *context,
angle::EntryPoint entryPoint,
TextureType target);
ANGLE_INLINE bool ValidateBindTexture(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
TextureID texture)
{ … }
bool ValidateES2TexImageParametersBase(const Context *context,
angle::EntryPoint entryPoint,
TextureTarget target,
GLint level,
GLenum internalformat,
bool isCompressed,
bool isSubImage,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
GLsizei imageSize,
const void *pixels);
bool ValidateES2TexStorageParametersBase(const Context *context,
angle::EntryPoint entryPoint,
TextureType target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height);
bool ValidatePushDebugGroupBase(const Context *context,
angle::EntryPoint entryPoint,
GLenum source,
GLuint id,
GLsizei length,
const GLchar *message);
bool ValidatePopDebugGroupBase(const Context *context, angle::EntryPoint entryPoint);
}
#endif