1 // GENERATED FILE - DO NOT EDIT. 2 // Generated by generate_entry_points.py using data from gl.xml and gl_angle_ext.xml. 3 // 4 // Copyright 2019 The ANGLE Project Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style license that can be 6 // found in the LICENSE file. 7 // 8 // validationES31_autogen.h: 9 // Validation functions for the OpenGL ES 3.1 entry points. 10 11 #ifndef LIBANGLE_VALIDATION_ES31_AUTOGEN_H_ 12 #define LIBANGLE_VALIDATION_ES31_AUTOGEN_H_ 13 14 #include "common/PackedEnums.h" 15 16 namespace gl 17 { 18 class Context; 19 20 bool ValidateActiveShaderProgram(Context *context, GLuint pipeline, GLuint program); 21 bool ValidateBindImageTexture(Context *context, 22 GLuint unit, 23 TextureID texturePacked, 24 GLint level, 25 GLboolean layered, 26 GLint layer, 27 GLenum access, 28 GLenum format); 29 bool ValidateBindProgramPipeline(Context *context, GLuint pipeline); 30 bool ValidateBindVertexBuffer(Context *context, 31 GLuint bindingindex, 32 BufferID bufferPacked, 33 GLintptr offset, 34 GLsizei stride); 35 bool ValidateCreateShaderProgramv(Context *context, 36 ShaderType typePacked, 37 GLsizei count, 38 const GLchar *const *strings); 39 bool ValidateDeleteProgramPipelines(Context *context, GLsizei n, const GLuint *pipelines); 40 bool ValidateDispatchCompute(Context *context, 41 GLuint num_groups_x, 42 GLuint num_groups_y, 43 GLuint num_groups_z); 44 bool ValidateDispatchComputeIndirect(Context *context, GLintptr indirect); 45 bool ValidateDrawArraysIndirect(Context *context, PrimitiveMode modePacked, const void *indirect); 46 bool ValidateDrawElementsIndirect(Context *context, 47 PrimitiveMode modePacked, 48 DrawElementsType typePacked, 49 const void *indirect); 50 bool ValidateFramebufferParameteri(Context *context, GLenum target, GLenum pname, GLint param); 51 bool ValidateGenProgramPipelines(Context *context, GLsizei n, GLuint *pipelines); 52 bool ValidateGetBooleani_v(Context *context, GLenum target, GLuint index, GLboolean *data); 53 bool ValidateGetFramebufferParameteriv(Context *context, 54 GLenum target, 55 GLenum pname, 56 GLint *params); 57 bool ValidateGetMultisamplefv(Context *context, GLenum pname, GLuint index, GLfloat *val); 58 bool ValidateGetProgramInterfaceiv(Context *context, 59 GLuint program, 60 GLenum programInterface, 61 GLenum pname, 62 GLint *params); 63 bool ValidateGetProgramPipelineInfoLog(Context *context, 64 GLuint pipeline, 65 GLsizei bufSize, 66 GLsizei *length, 67 GLchar *infoLog); 68 bool ValidateGetProgramPipelineiv(Context *context, GLuint pipeline, GLenum pname, GLint *params); 69 bool ValidateGetProgramResourceIndex(Context *context, 70 GLuint program, 71 GLenum programInterface, 72 const GLchar *name); 73 bool ValidateGetProgramResourceLocation(Context *context, 74 GLuint program, 75 GLenum programInterface, 76 const GLchar *name); 77 bool ValidateGetProgramResourceName(Context *context, 78 GLuint program, 79 GLenum programInterface, 80 GLuint index, 81 GLsizei bufSize, 82 GLsizei *length, 83 GLchar *name); 84 bool ValidateGetProgramResourceiv(Context *context, 85 GLuint program, 86 GLenum programInterface, 87 GLuint index, 88 GLsizei propCount, 89 const GLenum *props, 90 GLsizei bufSize, 91 GLsizei *length, 92 GLint *params); 93 bool ValidateGetTexLevelParameterfv(Context *context, 94 TextureTarget targetPacked, 95 GLint level, 96 GLenum pname, 97 GLfloat *params); 98 bool ValidateGetTexLevelParameteriv(Context *context, 99 TextureTarget targetPacked, 100 GLint level, 101 GLenum pname, 102 GLint *params); 103 bool ValidateIsProgramPipeline(Context *context, GLuint pipeline); 104 bool ValidateMemoryBarrier(Context *context, GLbitfield barriers); 105 bool ValidateMemoryBarrierByRegion(Context *context, GLbitfield barriers); 106 bool ValidateProgramUniform1f(Context *context, GLuint program, GLint location, GLfloat v0); 107 bool ValidateProgramUniform1fv(Context *context, 108 GLuint program, 109 GLint location, 110 GLsizei count, 111 const GLfloat *value); 112 bool ValidateProgramUniform1i(Context *context, GLuint program, GLint location, GLint v0); 113 bool ValidateProgramUniform1iv(Context *context, 114 GLuint program, 115 GLint location, 116 GLsizei count, 117 const GLint *value); 118 bool ValidateProgramUniform1ui(Context *context, GLuint program, GLint location, GLuint v0); 119 bool ValidateProgramUniform1uiv(Context *context, 120 GLuint program, 121 GLint location, 122 GLsizei count, 123 const GLuint *value); 124 bool ValidateProgramUniform2f(Context *context, 125 GLuint program, 126 GLint location, 127 GLfloat v0, 128 GLfloat v1); 129 bool ValidateProgramUniform2fv(Context *context, 130 GLuint program, 131 GLint location, 132 GLsizei count, 133 const GLfloat *value); 134 bool ValidateProgramUniform2i(Context *context, GLuint program, GLint location, GLint v0, GLint v1); 135 bool ValidateProgramUniform2iv(Context *context, 136 GLuint program, 137 GLint location, 138 GLsizei count, 139 const GLint *value); 140 bool ValidateProgramUniform2ui(Context *context, 141 GLuint program, 142 GLint location, 143 GLuint v0, 144 GLuint v1); 145 bool ValidateProgramUniform2uiv(Context *context, 146 GLuint program, 147 GLint location, 148 GLsizei count, 149 const GLuint *value); 150 bool ValidateProgramUniform3f(Context *context, 151 GLuint program, 152 GLint location, 153 GLfloat v0, 154 GLfloat v1, 155 GLfloat v2); 156 bool ValidateProgramUniform3fv(Context *context, 157 GLuint program, 158 GLint location, 159 GLsizei count, 160 const GLfloat *value); 161 bool ValidateProgramUniform3i(Context *context, 162 GLuint program, 163 GLint location, 164 GLint v0, 165 GLint v1, 166 GLint v2); 167 bool ValidateProgramUniform3iv(Context *context, 168 GLuint program, 169 GLint location, 170 GLsizei count, 171 const GLint *value); 172 bool ValidateProgramUniform3ui(Context *context, 173 GLuint program, 174 GLint location, 175 GLuint v0, 176 GLuint v1, 177 GLuint v2); 178 bool ValidateProgramUniform3uiv(Context *context, 179 GLuint program, 180 GLint location, 181 GLsizei count, 182 const GLuint *value); 183 bool ValidateProgramUniform4f(Context *context, 184 GLuint program, 185 GLint location, 186 GLfloat v0, 187 GLfloat v1, 188 GLfloat v2, 189 GLfloat v3); 190 bool ValidateProgramUniform4fv(Context *context, 191 GLuint program, 192 GLint location, 193 GLsizei count, 194 const GLfloat *value); 195 bool ValidateProgramUniform4i(Context *context, 196 GLuint program, 197 GLint location, 198 GLint v0, 199 GLint v1, 200 GLint v2, 201 GLint v3); 202 bool ValidateProgramUniform4iv(Context *context, 203 GLuint program, 204 GLint location, 205 GLsizei count, 206 const GLint *value); 207 bool ValidateProgramUniform4ui(Context *context, 208 GLuint program, 209 GLint location, 210 GLuint v0, 211 GLuint v1, 212 GLuint v2, 213 GLuint v3); 214 bool ValidateProgramUniform4uiv(Context *context, 215 GLuint program, 216 GLint location, 217 GLsizei count, 218 const GLuint *value); 219 bool ValidateProgramUniformMatrix2fv(Context *context, 220 GLuint program, 221 GLint location, 222 GLsizei count, 223 GLboolean transpose, 224 const GLfloat *value); 225 bool ValidateProgramUniformMatrix2x3fv(Context *context, 226 GLuint program, 227 GLint location, 228 GLsizei count, 229 GLboolean transpose, 230 const GLfloat *value); 231 bool ValidateProgramUniformMatrix2x4fv(Context *context, 232 GLuint program, 233 GLint location, 234 GLsizei count, 235 GLboolean transpose, 236 const GLfloat *value); 237 bool ValidateProgramUniformMatrix3fv(Context *context, 238 GLuint program, 239 GLint location, 240 GLsizei count, 241 GLboolean transpose, 242 const GLfloat *value); 243 bool ValidateProgramUniformMatrix3x2fv(Context *context, 244 GLuint program, 245 GLint location, 246 GLsizei count, 247 GLboolean transpose, 248 const GLfloat *value); 249 bool ValidateProgramUniformMatrix3x4fv(Context *context, 250 GLuint program, 251 GLint location, 252 GLsizei count, 253 GLboolean transpose, 254 const GLfloat *value); 255 bool ValidateProgramUniformMatrix4fv(Context *context, 256 GLuint program, 257 GLint location, 258 GLsizei count, 259 GLboolean transpose, 260 const GLfloat *value); 261 bool ValidateProgramUniformMatrix4x2fv(Context *context, 262 GLuint program, 263 GLint location, 264 GLsizei count, 265 GLboolean transpose, 266 const GLfloat *value); 267 bool ValidateProgramUniformMatrix4x3fv(Context *context, 268 GLuint program, 269 GLint location, 270 GLsizei count, 271 GLboolean transpose, 272 const GLfloat *value); 273 bool ValidateSampleMaski(Context *context, GLuint maskNumber, GLbitfield mask); 274 bool ValidateTexStorage2DMultisample(Context *context, 275 TextureType targetPacked, 276 GLsizei samples, 277 GLenum internalformat, 278 GLsizei width, 279 GLsizei height, 280 GLboolean fixedsamplelocations); 281 bool ValidateUseProgramStages(Context *context, GLuint pipeline, GLbitfield stages, GLuint program); 282 bool ValidateValidateProgramPipeline(Context *context, GLuint pipeline); 283 bool ValidateVertexAttribBinding(Context *context, GLuint attribindex, GLuint bindingindex); 284 bool ValidateVertexAttribFormat(Context *context, 285 GLuint attribindex, 286 GLint size, 287 VertexAttribType typePacked, 288 GLboolean normalized, 289 GLuint relativeoffset); 290 bool ValidateVertexAttribIFormat(Context *context, 291 GLuint attribindex, 292 GLint size, 293 VertexAttribType typePacked, 294 GLuint relativeoffset); 295 bool ValidateVertexBindingDivisor(Context *context, GLuint bindingindex, GLuint divisor); 296 } // namespace gl 297 298 #endif // LIBANGLE_VALIDATION_ES31_AUTOGEN_H_ 299