Hash :
57d95828
Author :
Date :
2020-04-30T17:35:50
Revert "Add type for attribute locations." This reverts commit 9349c14344b2d1fd6bc357063b602bc2626c140f and commit d43b057435e6c9e3194dd20627681ffca0c0808e. It's no longer needed after we bind attribute locations before link. Original CL message: This will allow the capture/replay tool to easily intercept and label attribute locations for remapping. There's some inconsistency in implementation in the GL desktop front- end. This is a quick fix and the full implementation is left for when we implement the full desktop GL API set. Bug: angleproject:4598 Change-Id: Ic510159d4d1982eff41560503cabf983a1be0381 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2174076 Reviewed-by: Cody Northrop <cnorthrop@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
// GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml and gl_angle_ext.xml.
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// validationES2_autogen.h:
// Validation functions for the OpenGL ES 2.0 entry points.
#ifndef LIBANGLE_VALIDATION_ES2_AUTOGEN_H_
#define LIBANGLE_VALIDATION_ES2_AUTOGEN_H_
#include "common/PackedEnums.h"
namespace gl
{
class Context;
bool ValidateActiveTexture(const Context *context, GLenum texture);
bool ValidateAttachShader(const Context *context,
ShaderProgramID programPacked,
ShaderProgramID shaderPacked);
bool ValidateBindAttribLocation(const Context *context,
ShaderProgramID programPacked,
GLuint index,
const GLchar *name);
bool ValidateBindBuffer(const Context *context, BufferBinding targetPacked, BufferID bufferPacked);
bool ValidateBindFramebuffer(const Context *context,
GLenum target,
FramebufferID framebufferPacked);
bool ValidateBindRenderbuffer(const Context *context,
GLenum target,
RenderbufferID renderbufferPacked);
bool ValidateBindTexture(const Context *context, TextureType targetPacked, TextureID texturePacked);
bool ValidateBlendColor(const Context *context,
GLfloat red,
GLfloat green,
GLfloat blue,
GLfloat alpha);
bool ValidateBlendEquation(const Context *context, GLenum mode);
bool ValidateBlendEquationSeparate(const Context *context, GLenum modeRGB, GLenum modeAlpha);
bool ValidateBlendFunc(const Context *context, GLenum sfactor, GLenum dfactor);
bool ValidateBlendFuncSeparate(const Context *context,
GLenum sfactorRGB,
GLenum dfactorRGB,
GLenum sfactorAlpha,
GLenum dfactorAlpha);
bool ValidateBufferData(const Context *context,
BufferBinding targetPacked,
GLsizeiptr size,
const void *data,
BufferUsage usagePacked);
bool ValidateBufferSubData(const Context *context,
BufferBinding targetPacked,
GLintptr offset,
GLsizeiptr size,
const void *data);
bool ValidateCheckFramebufferStatus(const Context *context, GLenum target);
bool ValidateClear(const Context *context, GLbitfield mask);
bool ValidateClearColor(const Context *context,
GLfloat red,
GLfloat green,
GLfloat blue,
GLfloat alpha);
bool ValidateClearDepthf(const Context *context, GLfloat d);
bool ValidateClearStencil(const Context *context, GLint s);
bool ValidateColorMask(const Context *context,
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha);
bool ValidateCompileShader(const Context *context, ShaderProgramID shaderPacked);
bool ValidateCompressedTexImage2D(const Context *context,
TextureTarget targetPacked,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLsizei imageSize,
const void *data);
bool ValidateCompressedTexSubImage2D(const Context *context,
TextureTarget targetPacked,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLsizei imageSize,
const void *data);
bool ValidateCopyTexImage2D(const Context *context,
TextureTarget targetPacked,
GLint level,
GLenum internalformat,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLint border);
bool ValidateCopyTexSubImage2D(const Context *context,
TextureTarget targetPacked,
GLint level,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height);
bool ValidateCreateProgram(const Context *context);
bool ValidateCreateShader(const Context *context, ShaderType typePacked);
bool ValidateCullFace(const Context *context, CullFaceMode modePacked);
bool ValidateDeleteBuffers(const Context *context, GLsizei n, const BufferID *buffersPacked);
bool ValidateDeleteFramebuffers(const Context *context,
GLsizei n,
const FramebufferID *framebuffersPacked);
bool ValidateDeleteProgram(const Context *context, ShaderProgramID programPacked);
bool ValidateDeleteRenderbuffers(const Context *context,
GLsizei n,
const RenderbufferID *renderbuffersPacked);
bool ValidateDeleteShader(const Context *context, ShaderProgramID shaderPacked);
bool ValidateDeleteTextures(const Context *context, GLsizei n, const TextureID *texturesPacked);
bool ValidateDepthFunc(const Context *context, GLenum func);
bool ValidateDepthMask(const Context *context, GLboolean flag);
bool ValidateDepthRangef(const Context *context, GLfloat n, GLfloat f);
bool ValidateDetachShader(const Context *context,
ShaderProgramID programPacked,
ShaderProgramID shaderPacked);
bool ValidateDisable(const Context *context, GLenum cap);
bool ValidateDisableVertexAttribArray(const Context *context, GLuint index);
bool ValidateDrawArrays(const Context *context,
PrimitiveMode modePacked,
GLint first,
GLsizei count);
bool ValidateDrawElements(const Context *context,
PrimitiveMode modePacked,
GLsizei count,
DrawElementsType typePacked,
const void *indices);
bool ValidateEnable(const Context *context, GLenum cap);
bool ValidateEnableVertexAttribArray(const Context *context, GLuint index);
bool ValidateFinish(const Context *context);
bool ValidateFlush(const Context *context);
bool ValidateFramebufferRenderbuffer(const Context *context,
GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
RenderbufferID renderbufferPacked);
bool ValidateFramebufferTexture2D(const Context *context,
GLenum target,
GLenum attachment,
TextureTarget textargetPacked,
TextureID texturePacked,
GLint level);
bool ValidateFrontFace(const Context *context, GLenum mode);
bool ValidateGenBuffers(const Context *context, GLsizei n, const BufferID *buffersPacked);
bool ValidateGenFramebuffers(const Context *context,
GLsizei n,
const FramebufferID *framebuffersPacked);
bool ValidateGenRenderbuffers(const Context *context,
GLsizei n,
const RenderbufferID *renderbuffersPacked);
bool ValidateGenTextures(const Context *context, GLsizei n, const TextureID *texturesPacked);
bool ValidateGenerateMipmap(const Context *context, TextureType targetPacked);
bool ValidateGetActiveAttrib(const Context *context,
ShaderProgramID programPacked,
GLuint index,
GLsizei bufSize,
const GLsizei *length,
const GLint *size,
const GLenum *type,
const GLchar *name);
bool ValidateGetActiveUniform(const Context *context,
ShaderProgramID programPacked,
GLuint index,
GLsizei bufSize,
const GLsizei *length,
const GLint *size,
const GLenum *type,
const GLchar *name);
bool ValidateGetAttachedShaders(const Context *context,
ShaderProgramID programPacked,
GLsizei maxCount,
const GLsizei *count,
const ShaderProgramID *shadersPacked);
bool ValidateGetAttribLocation(const Context *context,
ShaderProgramID programPacked,
const GLchar *name);
bool ValidateGetBooleanv(const Context *context, GLenum pname, const GLboolean *data);
bool ValidateGetBufferParameteriv(const Context *context,
BufferBinding targetPacked,
GLenum pname,
const GLint *params);
bool ValidateGetError(const Context *context);
bool ValidateGetFloatv(const Context *context, GLenum pname, const GLfloat *data);
bool ValidateGetFramebufferAttachmentParameteriv(const Context *context,
GLenum target,
GLenum attachment,
GLenum pname,
const GLint *params);
bool ValidateGetIntegerv(const Context *context, GLenum pname, const GLint *data);
bool ValidateGetProgramInfoLog(const Context *context,
ShaderProgramID programPacked,
GLsizei bufSize,
const GLsizei *length,
const GLchar *infoLog);
bool ValidateGetProgramiv(const Context *context,
ShaderProgramID programPacked,
GLenum pname,
const GLint *params);
bool ValidateGetRenderbufferParameteriv(const Context *context,
GLenum target,
GLenum pname,
const GLint *params);
bool ValidateGetShaderInfoLog(const Context *context,
ShaderProgramID shaderPacked,
GLsizei bufSize,
const GLsizei *length,
const GLchar *infoLog);
bool ValidateGetShaderPrecisionFormat(const Context *context,
GLenum shadertype,
GLenum precisiontype,
const GLint *range,
const GLint *precision);
bool ValidateGetShaderSource(const Context *context,
ShaderProgramID shaderPacked,
GLsizei bufSize,
const GLsizei *length,
const GLchar *source);
bool ValidateGetShaderiv(const Context *context,
ShaderProgramID shaderPacked,
GLenum pname,
const GLint *params);
bool ValidateGetString(const Context *context, GLenum name);
bool ValidateGetTexParameterfv(const Context *context,
TextureType targetPacked,
GLenum pname,
const GLfloat *params);
bool ValidateGetTexParameteriv(const Context *context,
TextureType targetPacked,
GLenum pname,
const GLint *params);
bool ValidateGetUniformLocation(const Context *context,
ShaderProgramID programPacked,
const GLchar *name);
bool ValidateGetUniformfv(const Context *context,
ShaderProgramID programPacked,
UniformLocation locationPacked,
const GLfloat *params);
bool ValidateGetUniformiv(const Context *context,
ShaderProgramID programPacked,
UniformLocation locationPacked,
const GLint *params);
bool ValidateGetVertexAttribPointerv(const Context *context,
GLuint index,
GLenum pname,
void *const *pointer);
bool ValidateGetVertexAttribfv(const Context *context,
GLuint index,
GLenum pname,
const GLfloat *params);
bool ValidateGetVertexAttribiv(const Context *context,
GLuint index,
GLenum pname,
const GLint *params);
bool ValidateHint(const Context *context, GLenum target, GLenum mode);
bool ValidateIsBuffer(const Context *context, BufferID bufferPacked);
bool ValidateIsEnabled(const Context *context, GLenum cap);
bool ValidateIsFramebuffer(const Context *context, FramebufferID framebufferPacked);
bool ValidateIsProgram(const Context *context, ShaderProgramID programPacked);
bool ValidateIsRenderbuffer(const Context *context, RenderbufferID renderbufferPacked);
bool ValidateIsShader(const Context *context, ShaderProgramID shaderPacked);
bool ValidateIsTexture(const Context *context, TextureID texturePacked);
bool ValidateLineWidth(const Context *context, GLfloat width);
bool ValidateLinkProgram(const Context *context, ShaderProgramID programPacked);
bool ValidatePixelStorei(const Context *context, GLenum pname, GLint param);
bool ValidatePolygonOffset(const Context *context, GLfloat factor, GLfloat units);
bool ValidateReadPixels(const Context *context,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void *pixels);
bool ValidateReleaseShaderCompiler(const Context *context);
bool ValidateRenderbufferStorage(const Context *context,
GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height);
bool ValidateSampleCoverage(const Context *context, GLfloat value, GLboolean invert);
bool ValidateScissor(const Context *context, GLint x, GLint y, GLsizei width, GLsizei height);
bool ValidateShaderBinary(const Context *context,
GLsizei count,
const ShaderProgramID *shadersPacked,
GLenum binaryformat,
const void *binary,
GLsizei length);
bool ValidateShaderSource(const Context *context,
ShaderProgramID shaderPacked,
GLsizei count,
const GLchar *const *string,
const GLint *length);
bool ValidateStencilFunc(const Context *context, GLenum func, GLint ref, GLuint mask);
bool ValidateStencilFuncSeparate(const Context *context,
GLenum face,
GLenum func,
GLint ref,
GLuint mask);
bool ValidateStencilMask(const Context *context, GLuint mask);
bool ValidateStencilMaskSeparate(const Context *context, GLenum face, GLuint mask);
bool ValidateStencilOp(const Context *context, GLenum fail, GLenum zfail, GLenum zpass);
bool ValidateStencilOpSeparate(const Context *context,
GLenum face,
GLenum sfail,
GLenum dpfail,
GLenum dppass);
bool ValidateTexImage2D(const Context *context,
TextureTarget targetPacked,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const void *pixels);
bool ValidateTexParameterf(const Context *context,
TextureType targetPacked,
GLenum pname,
GLfloat param);
bool ValidateTexParameterfv(const Context *context,
TextureType targetPacked,
GLenum pname,
const GLfloat *params);
bool ValidateTexParameteri(const Context *context,
TextureType targetPacked,
GLenum pname,
GLint param);
bool ValidateTexParameteriv(const Context *context,
TextureType targetPacked,
GLenum pname,
const GLint *params);
bool ValidateTexSubImage2D(const Context *context,
TextureTarget targetPacked,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void *pixels);
bool ValidateUniform1f(const Context *context, UniformLocation locationPacked, GLfloat v0);
bool ValidateUniform1fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLfloat *value);
bool ValidateUniform1i(const Context *context, UniformLocation locationPacked, GLint v0);
bool ValidateUniform1iv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLint *value);
bool ValidateUniform2f(const Context *context,
UniformLocation locationPacked,
GLfloat v0,
GLfloat v1);
bool ValidateUniform2fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLfloat *value);
bool ValidateUniform2i(const Context *context, UniformLocation locationPacked, GLint v0, GLint v1);
bool ValidateUniform2iv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLint *value);
bool ValidateUniform3f(const Context *context,
UniformLocation locationPacked,
GLfloat v0,
GLfloat v1,
GLfloat v2);
bool ValidateUniform3fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLfloat *value);
bool ValidateUniform3i(const Context *context,
UniformLocation locationPacked,
GLint v0,
GLint v1,
GLint v2);
bool ValidateUniform3iv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLint *value);
bool ValidateUniform4f(const Context *context,
UniformLocation locationPacked,
GLfloat v0,
GLfloat v1,
GLfloat v2,
GLfloat v3);
bool ValidateUniform4fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLfloat *value);
bool ValidateUniform4i(const Context *context,
UniformLocation locationPacked,
GLint v0,
GLint v1,
GLint v2,
GLint v3);
bool ValidateUniform4iv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
const GLint *value);
bool ValidateUniformMatrix2fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
GLboolean transpose,
const GLfloat *value);
bool ValidateUniformMatrix3fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
GLboolean transpose,
const GLfloat *value);
bool ValidateUniformMatrix4fv(const Context *context,
UniformLocation locationPacked,
GLsizei count,
GLboolean transpose,
const GLfloat *value);
bool ValidateUseProgram(const Context *context, ShaderProgramID programPacked);
bool ValidateValidateProgram(const Context *context, ShaderProgramID programPacked);
bool ValidateVertexAttrib1f(const Context *context, GLuint index, GLfloat x);
bool ValidateVertexAttrib1fv(const Context *context, GLuint index, const GLfloat *v);
bool ValidateVertexAttrib2f(const Context *context, GLuint index, GLfloat x, GLfloat y);
bool ValidateVertexAttrib2fv(const Context *context, GLuint index, const GLfloat *v);
bool ValidateVertexAttrib3f(const Context *context, GLuint index, GLfloat x, GLfloat y, GLfloat z);
bool ValidateVertexAttrib3fv(const Context *context, GLuint index, const GLfloat *v);
bool ValidateVertexAttrib4f(const Context *context,
GLuint index,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w);
bool ValidateVertexAttrib4fv(const Context *context, GLuint index, const GLfloat *v);
bool ValidateVertexAttribPointer(const Context *context,
GLuint index,
GLint size,
VertexAttribType typePacked,
GLboolean normalized,
GLsizei stride,
const void *pointer);
bool ValidateViewport(const Context *context, GLint x, GLint y, GLsizei width, GLsizei height);
} // namespace gl
#endif // LIBANGLE_VALIDATION_ES2_AUTOGEN_H_