Hash :
bd4e756a
Author :
Date :
2020-02-17T09:49:45
Const-ify the validation layer. Enforces that the validation layers should be working pretty much read- only with the exeption of updating caches. Requires a few tricks: - updates EP code generation to add 'const' to pointer parameters - enables a kludge const_cast to enable the robust query extension - makes some members of Framebuffer mutable to work around syncState - makes 'is' queries and other methods in Context/State const Will allow us to more safely expose the no_error extension. Bug: angleproject:1280 Change-Id: Id9756757854c9e68fc096ecec8d93759fbe6b3a4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2060689 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jonah Ryan-Davis <jonahr@google.com> Reviewed-by: Geoff Lang <geofflang@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
// GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml and wgl.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.
//
// validationGL1_autogen.h:
// Validation functions for the OpenGL 1.0 entry points.
#ifndef LIBANGLE_VALIDATION_GL1_AUTOGEN_H_
#define LIBANGLE_VALIDATION_GL1_AUTOGEN_H_
#include "common/PackedEnums.h"
namespace gl
{
class Context;
bool ValidateAccum(const Context *context, GLenum op, GLfloat value);
bool ValidateBegin(const Context *context, GLenum mode);
bool ValidateBitmap(const Context *context,
GLsizei width,
GLsizei height,
GLfloat xorig,
GLfloat yorig,
GLfloat xmove,
GLfloat ymove,
const GLubyte *bitmap);
bool ValidateCallList(const Context *context, GLuint list);
bool ValidateCallLists(const Context *context, GLsizei n, GLenum type, const void *lists);
bool ValidateClearAccum(const Context *context,
GLfloat red,
GLfloat green,
GLfloat blue,
GLfloat alpha);
bool ValidateClearDepth(const Context *context, GLdouble depth);
bool ValidateClearIndex(const Context *context, GLfloat c);
bool ValidateClipPlane(const Context *context, GLenum plane, const GLdouble *equation);
bool ValidateColor3b(const Context *context, GLbyte red, GLbyte green, GLbyte blue);
bool ValidateColor3bv(const Context *context, const GLbyte *v);
bool ValidateColor3d(const Context *context, GLdouble red, GLdouble green, GLdouble blue);
bool ValidateColor3dv(const Context *context, const GLdouble *v);
bool ValidateColor3f(const Context *context, GLfloat red, GLfloat green, GLfloat blue);
bool ValidateColor3fv(const Context *context, const GLfloat *v);
bool ValidateColor3i(const Context *context, GLint red, GLint green, GLint blue);
bool ValidateColor3iv(const Context *context, const GLint *v);
bool ValidateColor3s(const Context *context, GLshort red, GLshort green, GLshort blue);
bool ValidateColor3sv(const Context *context, const GLshort *v);
bool ValidateColor3ub(const Context *context, GLubyte red, GLubyte green, GLubyte blue);
bool ValidateColor3ubv(const Context *context, const GLubyte *v);
bool ValidateColor3ui(const Context *context, GLuint red, GLuint green, GLuint blue);
bool ValidateColor3uiv(const Context *context, const GLuint *v);
bool ValidateColor3us(const Context *context, GLushort red, GLushort green, GLushort blue);
bool ValidateColor3usv(const Context *context, const GLushort *v);
bool ValidateColor4b(const Context *context, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
bool ValidateColor4bv(const Context *context, const GLbyte *v);
bool ValidateColor4d(const Context *context,
GLdouble red,
GLdouble green,
GLdouble blue,
GLdouble alpha);
bool ValidateColor4dv(const Context *context, const GLdouble *v);
bool ValidateColor4fv(const Context *context, const GLfloat *v);
bool ValidateColor4i(const Context *context, GLint red, GLint green, GLint blue, GLint alpha);
bool ValidateColor4iv(const Context *context, const GLint *v);
bool ValidateColor4s(const Context *context,
GLshort red,
GLshort green,
GLshort blue,
GLshort alpha);
bool ValidateColor4sv(const Context *context, const GLshort *v);
bool ValidateColor4ubv(const Context *context, const GLubyte *v);
bool ValidateColor4ui(const Context *context, GLuint red, GLuint green, GLuint blue, GLuint alpha);
bool ValidateColor4uiv(const Context *context, const GLuint *v);
bool ValidateColor4us(const Context *context,
GLushort red,
GLushort green,
GLushort blue,
GLushort alpha);
bool ValidateColor4usv(const Context *context, const GLushort *v);
bool ValidateColorMaterial(const Context *context, GLenum face, GLenum mode);
bool ValidateCopyPixels(const Context *context,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum type);
bool ValidateDeleteLists(const Context *context, GLuint list, GLsizei range);
bool ValidateDepthRange(const Context *context, GLdouble n, GLdouble f);
bool ValidateDrawBuffer(const Context *context, GLenum buf);
bool ValidateDrawPixels(const Context *context,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void *pixels);
bool ValidateEdgeFlag(const Context *context, GLboolean flag);
bool ValidateEdgeFlagv(const Context *context, const GLboolean *flag);
bool ValidateEnd(const Context *context);
bool ValidateEndList(const Context *context);
bool ValidateEvalCoord1d(const Context *context, GLdouble u);
bool ValidateEvalCoord1dv(const Context *context, const GLdouble *u);
bool ValidateEvalCoord1f(const Context *context, GLfloat u);
bool ValidateEvalCoord1fv(const Context *context, const GLfloat *u);
bool ValidateEvalCoord2d(const Context *context, GLdouble u, GLdouble v);
bool ValidateEvalCoord2dv(const Context *context, const GLdouble *u);
bool ValidateEvalCoord2f(const Context *context, GLfloat u, GLfloat v);
bool ValidateEvalCoord2fv(const Context *context, const GLfloat *u);
bool ValidateEvalMesh1(const Context *context, GLenum mode, GLint i1, GLint i2);
bool ValidateEvalMesh2(const Context *context, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
bool ValidateEvalPoint1(const Context *context, GLint i);
bool ValidateEvalPoint2(const Context *context, GLint i, GLint j);
bool ValidateFeedbackBuffer(const Context *context,
GLsizei size,
GLenum type,
const GLfloat *buffer);
bool ValidateFogi(const Context *context, GLenum pname, GLint param);
bool ValidateFogiv(const Context *context, GLenum pname, const GLint *params);
bool ValidateFrustum(const Context *context,
GLdouble left,
GLdouble right,
GLdouble bottom,
GLdouble top,
GLdouble zNear,
GLdouble zFar);
bool ValidateGenLists(const Context *context, GLsizei range);
bool ValidateGetClipPlane(const Context *context, GLenum plane, const GLdouble *equation);
bool ValidateGetDoublev(const Context *context, GLenum pname, const GLdouble *data);
bool ValidateGetLightiv(const Context *context, GLenum light, GLenum pname, const GLint *params);
bool ValidateGetMapdv(const Context *context, GLenum target, GLenum query, const GLdouble *v);
bool ValidateGetMapfv(const Context *context, GLenum target, GLenum query, const GLfloat *v);
bool ValidateGetMapiv(const Context *context, GLenum target, GLenum query, const GLint *v);
bool ValidateGetMaterialiv(const Context *context, GLenum face, GLenum pname, const GLint *params);
bool ValidateGetPixelMapfv(const Context *context, GLenum map, const GLfloat *values);
bool ValidateGetPixelMapuiv(const Context *context, GLenum map, const GLuint *values);
bool ValidateGetPixelMapusv(const Context *context, GLenum map, const GLushort *values);
bool ValidateGetPolygonStipple(const Context *context, const GLubyte *mask);
bool ValidateGetTexGendv(const Context *context,
GLenum coord,
GLenum pname,
const GLdouble *params);
bool ValidateGetTexGenfv(const Context *context, GLenum coord, GLenum pname, const GLfloat *params);
bool ValidateGetTexGeniv(const Context *context, GLenum coord, GLenum pname, const GLint *params);
bool ValidateGetTexImage(const Context *context,
TextureTarget targetPacked,
GLint level,
GLenum format,
GLenum type,
const void *pixels);
bool ValidateIndexMask(const Context *context, GLuint mask);
bool ValidateIndexd(const Context *context, GLdouble c);
bool ValidateIndexdv(const Context *context, const GLdouble *c);
bool ValidateIndexf(const Context *context, GLfloat c);
bool ValidateIndexfv(const Context *context, const GLfloat *c);
bool ValidateIndexi(const Context *context, GLint c);
bool ValidateIndexiv(const Context *context, const GLint *c);
bool ValidateIndexs(const Context *context, GLshort c);
bool ValidateIndexsv(const Context *context, const GLshort *c);
bool ValidateInitNames(const Context *context);
bool ValidateIsList(const Context *context, GLuint list);
bool ValidateLightModeli(const Context *context, GLenum pname, GLint param);
bool ValidateLightModeliv(const Context *context, GLenum pname, const GLint *params);
bool ValidateLighti(const Context *context, GLenum light, GLenum pname, GLint param);
bool ValidateLightiv(const Context *context, GLenum light, GLenum pname, const GLint *params);
bool ValidateLineStipple(const Context *context, GLint factor, GLushort pattern);
bool ValidateListBase(const Context *context, GLuint base);
bool ValidateLoadMatrixd(const Context *context, const GLdouble *m);
bool ValidateLoadName(const Context *context, GLuint name);
bool ValidateMap1d(const Context *context,
GLenum target,
GLdouble u1,
GLdouble u2,
GLint stride,
GLint order,
const GLdouble *points);
bool ValidateMap1f(const Context *context,
GLenum target,
GLfloat u1,
GLfloat u2,
GLint stride,
GLint order,
const GLfloat *points);
bool ValidateMap2d(const Context *context,
GLenum target,
GLdouble u1,
GLdouble u2,
GLint ustride,
GLint uorder,
GLdouble v1,
GLdouble v2,
GLint vstride,
GLint vorder,
const GLdouble *points);
bool ValidateMap2f(const Context *context,
GLenum target,
GLfloat u1,
GLfloat u2,
GLint ustride,
GLint uorder,
GLfloat v1,
GLfloat v2,
GLint vstride,
GLint vorder,
const GLfloat *points);
bool ValidateMapGrid1d(const Context *context, GLint un, GLdouble u1, GLdouble u2);
bool ValidateMapGrid1f(const Context *context, GLint un, GLfloat u1, GLfloat u2);
bool ValidateMapGrid2d(const Context *context,
GLint un,
GLdouble u1,
GLdouble u2,
GLint vn,
GLdouble v1,
GLdouble v2);
bool ValidateMapGrid2f(const Context *context,
GLint un,
GLfloat u1,
GLfloat u2,
GLint vn,
GLfloat v1,
GLfloat v2);
bool ValidateMateriali(const Context *context, GLenum face, GLenum pname, GLint param);
bool ValidateMaterialiv(const Context *context, GLenum face, GLenum pname, const GLint *params);
bool ValidateMultMatrixd(const Context *context, const GLdouble *m);
bool ValidateNewList(const Context *context, GLuint list, GLenum mode);
bool ValidateNormal3b(const Context *context, GLbyte nx, GLbyte ny, GLbyte nz);
bool ValidateNormal3bv(const Context *context, const GLbyte *v);
bool ValidateNormal3d(const Context *context, GLdouble nx, GLdouble ny, GLdouble nz);
bool ValidateNormal3dv(const Context *context, const GLdouble *v);
bool ValidateNormal3fv(const Context *context, const GLfloat *v);
bool ValidateNormal3i(const Context *context, GLint nx, GLint ny, GLint nz);
bool ValidateNormal3iv(const Context *context, const GLint *v);
bool ValidateNormal3s(const Context *context, GLshort nx, GLshort ny, GLshort nz);
bool ValidateNormal3sv(const Context *context, const GLshort *v);
bool ValidateOrtho(const Context *context,
GLdouble left,
GLdouble right,
GLdouble bottom,
GLdouble top,
GLdouble zNear,
GLdouble zFar);
bool ValidatePassThrough(const Context *context, GLfloat token);
bool ValidatePixelMapfv(const Context *context, GLenum map, GLsizei mapsize, const GLfloat *values);
bool ValidatePixelMapuiv(const Context *context, GLenum map, GLsizei mapsize, const GLuint *values);
bool ValidatePixelMapusv(const Context *context,
GLenum map,
GLsizei mapsize,
const GLushort *values);
bool ValidatePixelStoref(const Context *context, GLenum pname, GLfloat param);
bool ValidatePixelTransferf(const Context *context, GLenum pname, GLfloat param);
bool ValidatePixelTransferi(const Context *context, GLenum pname, GLint param);
bool ValidatePixelZoom(const Context *context, GLfloat xfactor, GLfloat yfactor);
bool ValidatePolygonMode(const Context *context, GLenum face, GLenum mode);
bool ValidatePolygonStipple(const Context *context, const GLubyte *mask);
bool ValidatePopAttrib(const Context *context);
bool ValidatePopName(const Context *context);
bool ValidatePushAttrib(const Context *context, GLbitfield mask);
bool ValidatePushName(const Context *context, GLuint name);
bool ValidateRasterPos2d(const Context *context, GLdouble x, GLdouble y);
bool ValidateRasterPos2dv(const Context *context, const GLdouble *v);
bool ValidateRasterPos2f(const Context *context, GLfloat x, GLfloat y);
bool ValidateRasterPos2fv(const Context *context, const GLfloat *v);
bool ValidateRasterPos2i(const Context *context, GLint x, GLint y);
bool ValidateRasterPos2iv(const Context *context, const GLint *v);
bool ValidateRasterPos2s(const Context *context, GLshort x, GLshort y);
bool ValidateRasterPos2sv(const Context *context, const GLshort *v);
bool ValidateRasterPos3d(const Context *context, GLdouble x, GLdouble y, GLdouble z);
bool ValidateRasterPos3dv(const Context *context, const GLdouble *v);
bool ValidateRasterPos3f(const Context *context, GLfloat x, GLfloat y, GLfloat z);
bool ValidateRasterPos3fv(const Context *context, const GLfloat *v);
bool ValidateRasterPos3i(const Context *context, GLint x, GLint y, GLint z);
bool ValidateRasterPos3iv(const Context *context, const GLint *v);
bool ValidateRasterPos3s(const Context *context, GLshort x, GLshort y, GLshort z);
bool ValidateRasterPos3sv(const Context *context, const GLshort *v);
bool ValidateRasterPos4d(const Context *context, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
bool ValidateRasterPos4dv(const Context *context, const GLdouble *v);
bool ValidateRasterPos4f(const Context *context, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
bool ValidateRasterPos4fv(const Context *context, const GLfloat *v);
bool ValidateRasterPos4i(const Context *context, GLint x, GLint y, GLint z, GLint w);
bool ValidateRasterPos4iv(const Context *context, const GLint *v);
bool ValidateRasterPos4s(const Context *context, GLshort x, GLshort y, GLshort z, GLshort w);
bool ValidateRasterPos4sv(const Context *context, const GLshort *v);
bool ValidateRectd(const Context *context, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
bool ValidateRectdv(const Context *context, const GLdouble *v1, const GLdouble *v2);
bool ValidateRectf(const Context *context, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
bool ValidateRectfv(const Context *context, const GLfloat *v1, const GLfloat *v2);
bool ValidateRecti(const Context *context, GLint x1, GLint y1, GLint x2, GLint y2);
bool ValidateRectiv(const Context *context, const GLint *v1, const GLint *v2);
bool ValidateRects(const Context *context, GLshort x1, GLshort y1, GLshort x2, GLshort y2);
bool ValidateRectsv(const Context *context, const GLshort *v1, const GLshort *v2);
bool ValidateRenderMode(const Context *context, GLenum mode);
bool ValidateRotated(const Context *context, GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
bool ValidateScaled(const Context *context, GLdouble x, GLdouble y, GLdouble z);
bool ValidateSelectBuffer(const Context *context, GLsizei size, const GLuint *buffer);
bool ValidateTexCoord1d(const Context *context, GLdouble s);
bool ValidateTexCoord1dv(const Context *context, const GLdouble *v);
bool ValidateTexCoord1f(const Context *context, GLfloat s);
bool ValidateTexCoord1fv(const Context *context, const GLfloat *v);
bool ValidateTexCoord1i(const Context *context, GLint s);
bool ValidateTexCoord1iv(const Context *context, const GLint *v);
bool ValidateTexCoord1s(const Context *context, GLshort s);
bool ValidateTexCoord1sv(const Context *context, const GLshort *v);
bool ValidateTexCoord2d(const Context *context, GLdouble s, GLdouble t);
bool ValidateTexCoord2dv(const Context *context, const GLdouble *v);
bool ValidateTexCoord2f(const Context *context, GLfloat s, GLfloat t);
bool ValidateTexCoord2fv(const Context *context, const GLfloat *v);
bool ValidateTexCoord2i(const Context *context, GLint s, GLint t);
bool ValidateTexCoord2iv(const Context *context, const GLint *v);
bool ValidateTexCoord2s(const Context *context, GLshort s, GLshort t);
bool ValidateTexCoord2sv(const Context *context, const GLshort *v);
bool ValidateTexCoord3d(const Context *context, GLdouble s, GLdouble t, GLdouble r);
bool ValidateTexCoord3dv(const Context *context, const GLdouble *v);
bool ValidateTexCoord3f(const Context *context, GLfloat s, GLfloat t, GLfloat r);
bool ValidateTexCoord3fv(const Context *context, const GLfloat *v);
bool ValidateTexCoord3i(const Context *context, GLint s, GLint t, GLint r);
bool ValidateTexCoord3iv(const Context *context, const GLint *v);
bool ValidateTexCoord3s(const Context *context, GLshort s, GLshort t, GLshort r);
bool ValidateTexCoord3sv(const Context *context, const GLshort *v);
bool ValidateTexCoord4d(const Context *context, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
bool ValidateTexCoord4dv(const Context *context, const GLdouble *v);
bool ValidateTexCoord4f(const Context *context, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
bool ValidateTexCoord4fv(const Context *context, const GLfloat *v);
bool ValidateTexCoord4i(const Context *context, GLint s, GLint t, GLint r, GLint q);
bool ValidateTexCoord4iv(const Context *context, const GLint *v);
bool ValidateTexCoord4s(const Context *context, GLshort s, GLshort t, GLshort r, GLshort q);
bool ValidateTexCoord4sv(const Context *context, const GLshort *v);
bool ValidateTexGend(const Context *context, GLenum coord, GLenum pname, GLdouble param);
bool ValidateTexGendv(const Context *context, GLenum coord, GLenum pname, const GLdouble *params);
bool ValidateTexGenf(const Context *context, GLenum coord, GLenum pname, GLfloat param);
bool ValidateTexGenfv(const Context *context, GLenum coord, GLenum pname, const GLfloat *params);
bool ValidateTexGeni(const Context *context, GLenum coord, GLenum pname, GLint param);
bool ValidateTexGeniv(const Context *context, GLenum coord, GLenum pname, const GLint *params);
bool ValidateTexImage1D(const Context *context,
GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLint border,
GLenum format,
GLenum type,
const void *pixels);
bool ValidateTranslated(const Context *context, GLdouble x, GLdouble y, GLdouble z);
bool ValidateVertex2d(const Context *context, GLdouble x, GLdouble y);
bool ValidateVertex2dv(const Context *context, const GLdouble *v);
bool ValidateVertex2f(const Context *context, GLfloat x, GLfloat y);
bool ValidateVertex2fv(const Context *context, const GLfloat *v);
bool ValidateVertex2i(const Context *context, GLint x, GLint y);
bool ValidateVertex2iv(const Context *context, const GLint *v);
bool ValidateVertex2s(const Context *context, GLshort x, GLshort y);
bool ValidateVertex2sv(const Context *context, const GLshort *v);
bool ValidateVertex3d(const Context *context, GLdouble x, GLdouble y, GLdouble z);
bool ValidateVertex3dv(const Context *context, const GLdouble *v);
bool ValidateVertex3f(const Context *context, GLfloat x, GLfloat y, GLfloat z);
bool ValidateVertex3fv(const Context *context, const GLfloat *v);
bool ValidateVertex3i(const Context *context, GLint x, GLint y, GLint z);
bool ValidateVertex3iv(const Context *context, const GLint *v);
bool ValidateVertex3s(const Context *context, GLshort x, GLshort y, GLshort z);
bool ValidateVertex3sv(const Context *context, const GLshort *v);
bool ValidateVertex4d(const Context *context, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
bool ValidateVertex4dv(const Context *context, const GLdouble *v);
bool ValidateVertex4f(const Context *context, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
bool ValidateVertex4fv(const Context *context, const GLfloat *v);
bool ValidateVertex4i(const Context *context, GLint x, GLint y, GLint z, GLint w);
bool ValidateVertex4iv(const Context *context, const GLint *v);
bool ValidateVertex4s(const Context *context, GLshort x, GLshort y, GLshort z, GLshort w);
bool ValidateVertex4sv(const Context *context, const GLshort *v);
} // namespace gl
#endif // LIBANGLE_VALIDATION_GL1_AUTOGEN_H_