• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 2020 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 // validationES3_autogen.h:
9 //   Validation functions for the OpenGL ES 3.0 entry points.
10 
11 #ifndef LIBANGLE_VALIDATION_ES3_AUTOGEN_H_
12 #define LIBANGLE_VALIDATION_ES3_AUTOGEN_H_
13 
14 #include "common/PackedEnums.h"
15 #include "common/entry_points_enum_autogen.h"
16 
17 namespace gl
18 {
19 class Context;
20 
21 bool ValidateBeginQuery(const Context *context,
22                         angle::EntryPoint entryPoint,
23                         QueryType targetPacked,
24                         QueryID idPacked);
25 bool ValidateBeginTransformFeedback(const Context *context,
26                                     angle::EntryPoint entryPoint,
27                                     PrimitiveMode primitiveModePacked);
28 bool ValidateBindBufferBase(const Context *context,
29                             angle::EntryPoint entryPoint,
30                             BufferBinding targetPacked,
31                             GLuint index,
32                             BufferID bufferPacked);
33 bool ValidateBindBufferRange(const Context *context,
34                              angle::EntryPoint entryPoint,
35                              BufferBinding targetPacked,
36                              GLuint index,
37                              BufferID bufferPacked,
38                              GLintptr offset,
39                              GLsizeiptr size);
40 bool ValidateBindSampler(const Context *context,
41                          angle::EntryPoint entryPoint,
42                          GLuint unit,
43                          SamplerID samplerPacked);
44 bool ValidateBindTransformFeedback(const Context *context,
45                                    angle::EntryPoint entryPoint,
46                                    GLenum target,
47                                    TransformFeedbackID idPacked);
48 bool ValidateBindVertexArray(const Context *context,
49                              angle::EntryPoint entryPoint,
50                              VertexArrayID arrayPacked);
51 bool ValidateBlitFramebuffer(const Context *context,
52                              angle::EntryPoint entryPoint,
53                              GLint srcX0,
54                              GLint srcY0,
55                              GLint srcX1,
56                              GLint srcY1,
57                              GLint dstX0,
58                              GLint dstY0,
59                              GLint dstX1,
60                              GLint dstY1,
61                              GLbitfield mask,
62                              GLenum filter);
63 bool ValidateClearBufferfi(const Context *context,
64                            angle::EntryPoint entryPoint,
65                            GLenum buffer,
66                            GLint drawbuffer,
67                            GLfloat depth,
68                            GLint stencil);
69 bool ValidateClearBufferfv(const Context *context,
70                            angle::EntryPoint entryPoint,
71                            GLenum buffer,
72                            GLint drawbuffer,
73                            const GLfloat *value);
74 bool ValidateClearBufferiv(const Context *context,
75                            angle::EntryPoint entryPoint,
76                            GLenum buffer,
77                            GLint drawbuffer,
78                            const GLint *value);
79 bool ValidateClearBufferuiv(const Context *context,
80                             angle::EntryPoint entryPoint,
81                             GLenum buffer,
82                             GLint drawbuffer,
83                             const GLuint *value);
84 bool ValidateClientWaitSync(const Context *context,
85                             angle::EntryPoint entryPoint,
86                             GLsync sync,
87                             GLbitfield flags,
88                             GLuint64 timeout);
89 bool ValidateCompressedTexImage3D(const Context *context,
90                                   angle::EntryPoint entryPoint,
91                                   TextureTarget targetPacked,
92                                   GLint level,
93                                   GLenum internalformat,
94                                   GLsizei width,
95                                   GLsizei height,
96                                   GLsizei depth,
97                                   GLint border,
98                                   GLsizei imageSize,
99                                   const void *data);
100 bool ValidateCompressedTexSubImage3D(const Context *context,
101                                      angle::EntryPoint entryPoint,
102                                      TextureTarget targetPacked,
103                                      GLint level,
104                                      GLint xoffset,
105                                      GLint yoffset,
106                                      GLint zoffset,
107                                      GLsizei width,
108                                      GLsizei height,
109                                      GLsizei depth,
110                                      GLenum format,
111                                      GLsizei imageSize,
112                                      const void *data);
113 bool ValidateCopyBufferSubData(const Context *context,
114                                angle::EntryPoint entryPoint,
115                                BufferBinding readTargetPacked,
116                                BufferBinding writeTargetPacked,
117                                GLintptr readOffset,
118                                GLintptr writeOffset,
119                                GLsizeiptr size);
120 bool ValidateCopyTexSubImage3D(const Context *context,
121                                angle::EntryPoint entryPoint,
122                                TextureTarget targetPacked,
123                                GLint level,
124                                GLint xoffset,
125                                GLint yoffset,
126                                GLint zoffset,
127                                GLint x,
128                                GLint y,
129                                GLsizei width,
130                                GLsizei height);
131 bool ValidateDeleteQueries(const Context *context,
132                            angle::EntryPoint entryPoint,
133                            GLsizei n,
134                            const QueryID *idsPacked);
135 bool ValidateDeleteSamplers(const Context *context,
136                             angle::EntryPoint entryPoint,
137                             GLsizei count,
138                             const SamplerID *samplersPacked);
139 bool ValidateDeleteSync(const Context *context, angle::EntryPoint entryPoint, GLsync sync);
140 bool ValidateDeleteTransformFeedbacks(const Context *context,
141                                       angle::EntryPoint entryPoint,
142                                       GLsizei n,
143                                       const TransformFeedbackID *idsPacked);
144 bool ValidateDeleteVertexArrays(const Context *context,
145                                 angle::EntryPoint entryPoint,
146                                 GLsizei n,
147                                 const VertexArrayID *arraysPacked);
148 bool ValidateDrawArraysInstanced(const Context *context,
149                                  angle::EntryPoint entryPoint,
150                                  PrimitiveMode modePacked,
151                                  GLint first,
152                                  GLsizei count,
153                                  GLsizei instancecount);
154 bool ValidateDrawBuffers(const Context *context,
155                          angle::EntryPoint entryPoint,
156                          GLsizei n,
157                          const GLenum *bufs);
158 bool ValidateDrawElementsInstanced(const Context *context,
159                                    angle::EntryPoint entryPoint,
160                                    PrimitiveMode modePacked,
161                                    GLsizei count,
162                                    DrawElementsType typePacked,
163                                    const void *indices,
164                                    GLsizei instancecount);
165 bool ValidateDrawRangeElements(const Context *context,
166                                angle::EntryPoint entryPoint,
167                                PrimitiveMode modePacked,
168                                GLuint start,
169                                GLuint end,
170                                GLsizei count,
171                                DrawElementsType typePacked,
172                                const void *indices);
173 bool ValidateEndQuery(const Context *context, angle::EntryPoint entryPoint, QueryType targetPacked);
174 bool ValidateEndTransformFeedback(const Context *context, angle::EntryPoint entryPoint);
175 bool ValidateFenceSync(const Context *context,
176                        angle::EntryPoint entryPoint,
177                        GLenum condition,
178                        GLbitfield flags);
179 bool ValidateFlushMappedBufferRange(const Context *context,
180                                     angle::EntryPoint entryPoint,
181                                     BufferBinding targetPacked,
182                                     GLintptr offset,
183                                     GLsizeiptr length);
184 bool ValidateFramebufferTextureLayer(const Context *context,
185                                      angle::EntryPoint entryPoint,
186                                      GLenum target,
187                                      GLenum attachment,
188                                      TextureID texturePacked,
189                                      GLint level,
190                                      GLint layer);
191 bool ValidateGenQueries(const Context *context,
192                         angle::EntryPoint entryPoint,
193                         GLsizei n,
194                         const QueryID *idsPacked);
195 bool ValidateGenSamplers(const Context *context,
196                          angle::EntryPoint entryPoint,
197                          GLsizei count,
198                          const SamplerID *samplersPacked);
199 bool ValidateGenTransformFeedbacks(const Context *context,
200                                    angle::EntryPoint entryPoint,
201                                    GLsizei n,
202                                    const TransformFeedbackID *idsPacked);
203 bool ValidateGenVertexArrays(const Context *context,
204                              angle::EntryPoint entryPoint,
205                              GLsizei n,
206                              const VertexArrayID *arraysPacked);
207 bool ValidateGetActiveUniformBlockName(const Context *context,
208                                        angle::EntryPoint entryPoint,
209                                        ShaderProgramID programPacked,
210                                        UniformBlockIndex uniformBlockIndexPacked,
211                                        GLsizei bufSize,
212                                        const GLsizei *length,
213                                        const GLchar *uniformBlockName);
214 bool ValidateGetActiveUniformBlockiv(const Context *context,
215                                      angle::EntryPoint entryPoint,
216                                      ShaderProgramID programPacked,
217                                      UniformBlockIndex uniformBlockIndexPacked,
218                                      GLenum pname,
219                                      const GLint *params);
220 bool ValidateGetActiveUniformsiv(const Context *context,
221                                  angle::EntryPoint entryPoint,
222                                  ShaderProgramID programPacked,
223                                  GLsizei uniformCount,
224                                  const GLuint *uniformIndices,
225                                  GLenum pname,
226                                  const GLint *params);
227 bool ValidateGetBufferParameteri64v(const Context *context,
228                                     angle::EntryPoint entryPoint,
229                                     BufferBinding targetPacked,
230                                     GLenum pname,
231                                     const GLint64 *params);
232 bool ValidateGetBufferPointerv(const Context *context,
233                                angle::EntryPoint entryPoint,
234                                BufferBinding targetPacked,
235                                GLenum pname,
236                                void *const *params);
237 bool ValidateGetFragDataLocation(const Context *context,
238                                  angle::EntryPoint entryPoint,
239                                  ShaderProgramID programPacked,
240                                  const GLchar *name);
241 bool ValidateGetInteger64i_v(const Context *context,
242                              angle::EntryPoint entryPoint,
243                              GLenum target,
244                              GLuint index,
245                              const GLint64 *data);
246 bool ValidateGetInteger64v(const Context *context,
247                            angle::EntryPoint entryPoint,
248                            GLenum pname,
249                            const GLint64 *data);
250 bool ValidateGetIntegeri_v(const Context *context,
251                            angle::EntryPoint entryPoint,
252                            GLenum target,
253                            GLuint index,
254                            const GLint *data);
255 bool ValidateGetInternalformativ(const Context *context,
256                                  angle::EntryPoint entryPoint,
257                                  GLenum target,
258                                  GLenum internalformat,
259                                  GLenum pname,
260                                  GLsizei bufSize,
261                                  const GLint *params);
262 bool ValidateGetProgramBinary(const Context *context,
263                               angle::EntryPoint entryPoint,
264                               ShaderProgramID programPacked,
265                               GLsizei bufSize,
266                               const GLsizei *length,
267                               const GLenum *binaryFormat,
268                               const void *binary);
269 bool ValidateGetQueryObjectuiv(const Context *context,
270                                angle::EntryPoint entryPoint,
271                                QueryID idPacked,
272                                GLenum pname,
273                                const GLuint *params);
274 bool ValidateGetQueryiv(const Context *context,
275                         angle::EntryPoint entryPoint,
276                         QueryType targetPacked,
277                         GLenum pname,
278                         const GLint *params);
279 bool ValidateGetSamplerParameterfv(const Context *context,
280                                    angle::EntryPoint entryPoint,
281                                    SamplerID samplerPacked,
282                                    GLenum pname,
283                                    const GLfloat *params);
284 bool ValidateGetSamplerParameteriv(const Context *context,
285                                    angle::EntryPoint entryPoint,
286                                    SamplerID samplerPacked,
287                                    GLenum pname,
288                                    const GLint *params);
289 bool ValidateGetStringi(const Context *context,
290                         angle::EntryPoint entryPoint,
291                         GLenum name,
292                         GLuint index);
293 bool ValidateGetSynciv(const Context *context,
294                        angle::EntryPoint entryPoint,
295                        GLsync sync,
296                        GLenum pname,
297                        GLsizei bufSize,
298                        const GLsizei *length,
299                        const GLint *values);
300 bool ValidateGetTransformFeedbackVarying(const Context *context,
301                                          angle::EntryPoint entryPoint,
302                                          ShaderProgramID programPacked,
303                                          GLuint index,
304                                          GLsizei bufSize,
305                                          const GLsizei *length,
306                                          const GLsizei *size,
307                                          const GLenum *type,
308                                          const GLchar *name);
309 bool ValidateGetUniformBlockIndex(const Context *context,
310                                   angle::EntryPoint entryPoint,
311                                   ShaderProgramID programPacked,
312                                   const GLchar *uniformBlockName);
313 bool ValidateGetUniformIndices(const Context *context,
314                                angle::EntryPoint entryPoint,
315                                ShaderProgramID programPacked,
316                                GLsizei uniformCount,
317                                const GLchar *const *uniformNames,
318                                const GLuint *uniformIndices);
319 bool ValidateGetUniformuiv(const Context *context,
320                            angle::EntryPoint entryPoint,
321                            ShaderProgramID programPacked,
322                            UniformLocation locationPacked,
323                            const GLuint *params);
324 bool ValidateGetVertexAttribIiv(const Context *context,
325                                 angle::EntryPoint entryPoint,
326                                 GLuint index,
327                                 GLenum pname,
328                                 const GLint *params);
329 bool ValidateGetVertexAttribIuiv(const Context *context,
330                                  angle::EntryPoint entryPoint,
331                                  GLuint index,
332                                  GLenum pname,
333                                  const GLuint *params);
334 bool ValidateInvalidateFramebuffer(const Context *context,
335                                    angle::EntryPoint entryPoint,
336                                    GLenum target,
337                                    GLsizei numAttachments,
338                                    const GLenum *attachments);
339 bool ValidateInvalidateSubFramebuffer(const Context *context,
340                                       angle::EntryPoint entryPoint,
341                                       GLenum target,
342                                       GLsizei numAttachments,
343                                       const GLenum *attachments,
344                                       GLint x,
345                                       GLint y,
346                                       GLsizei width,
347                                       GLsizei height);
348 bool ValidateIsQuery(const Context *context, angle::EntryPoint entryPoint, QueryID idPacked);
349 bool ValidateIsSampler(const Context *context,
350                        angle::EntryPoint entryPoint,
351                        SamplerID samplerPacked);
352 bool ValidateIsSync(const Context *context, angle::EntryPoint entryPoint, GLsync sync);
353 bool ValidateIsTransformFeedback(const Context *context,
354                                  angle::EntryPoint entryPoint,
355                                  TransformFeedbackID idPacked);
356 bool ValidateIsVertexArray(const Context *context,
357                            angle::EntryPoint entryPoint,
358                            VertexArrayID arrayPacked);
359 bool ValidateMapBufferRange(const Context *context,
360                             angle::EntryPoint entryPoint,
361                             BufferBinding targetPacked,
362                             GLintptr offset,
363                             GLsizeiptr length,
364                             GLbitfield access);
365 bool ValidatePauseTransformFeedback(const Context *context, angle::EntryPoint entryPoint);
366 bool ValidateProgramBinary(const Context *context,
367                            angle::EntryPoint entryPoint,
368                            ShaderProgramID programPacked,
369                            GLenum binaryFormat,
370                            const void *binary,
371                            GLsizei length);
372 bool ValidateProgramParameteri(const Context *context,
373                                angle::EntryPoint entryPoint,
374                                ShaderProgramID programPacked,
375                                GLenum pname,
376                                GLint value);
377 bool ValidateReadBuffer(const Context *context, angle::EntryPoint entryPoint, GLenum src);
378 bool ValidateRenderbufferStorageMultisample(const Context *context,
379                                             angle::EntryPoint entryPoint,
380                                             GLenum target,
381                                             GLsizei samples,
382                                             GLenum internalformat,
383                                             GLsizei width,
384                                             GLsizei height);
385 bool ValidateResumeTransformFeedback(const Context *context, angle::EntryPoint entryPoint);
386 bool ValidateSamplerParameterf(const Context *context,
387                                angle::EntryPoint entryPoint,
388                                SamplerID samplerPacked,
389                                GLenum pname,
390                                GLfloat param);
391 bool ValidateSamplerParameterfv(const Context *context,
392                                 angle::EntryPoint entryPoint,
393                                 SamplerID samplerPacked,
394                                 GLenum pname,
395                                 const GLfloat *param);
396 bool ValidateSamplerParameteri(const Context *context,
397                                angle::EntryPoint entryPoint,
398                                SamplerID samplerPacked,
399                                GLenum pname,
400                                GLint param);
401 bool ValidateSamplerParameteriv(const Context *context,
402                                 angle::EntryPoint entryPoint,
403                                 SamplerID samplerPacked,
404                                 GLenum pname,
405                                 const GLint *param);
406 bool ValidateTexImage3D(const Context *context,
407                         angle::EntryPoint entryPoint,
408                         TextureTarget targetPacked,
409                         GLint level,
410                         GLint internalformat,
411                         GLsizei width,
412                         GLsizei height,
413                         GLsizei depth,
414                         GLint border,
415                         GLenum format,
416                         GLenum type,
417                         const void *pixels);
418 bool ValidateTexStorage2D(const Context *context,
419                           angle::EntryPoint entryPoint,
420                           TextureType targetPacked,
421                           GLsizei levels,
422                           GLenum internalformat,
423                           GLsizei width,
424                           GLsizei height);
425 bool ValidateTexStorage3D(const Context *context,
426                           angle::EntryPoint entryPoint,
427                           TextureType targetPacked,
428                           GLsizei levels,
429                           GLenum internalformat,
430                           GLsizei width,
431                           GLsizei height,
432                           GLsizei depth);
433 bool ValidateTexSubImage3D(const Context *context,
434                            angle::EntryPoint entryPoint,
435                            TextureTarget targetPacked,
436                            GLint level,
437                            GLint xoffset,
438                            GLint yoffset,
439                            GLint zoffset,
440                            GLsizei width,
441                            GLsizei height,
442                            GLsizei depth,
443                            GLenum format,
444                            GLenum type,
445                            const void *pixels);
446 bool ValidateTransformFeedbackVaryings(const Context *context,
447                                        angle::EntryPoint entryPoint,
448                                        ShaderProgramID programPacked,
449                                        GLsizei count,
450                                        const GLchar *const *varyings,
451                                        GLenum bufferMode);
452 bool ValidateUniform1ui(const Context *context,
453                         angle::EntryPoint entryPoint,
454                         UniformLocation locationPacked,
455                         GLuint v0);
456 bool ValidateUniform1uiv(const Context *context,
457                          angle::EntryPoint entryPoint,
458                          UniformLocation locationPacked,
459                          GLsizei count,
460                          const GLuint *value);
461 bool ValidateUniform2ui(const Context *context,
462                         angle::EntryPoint entryPoint,
463                         UniformLocation locationPacked,
464                         GLuint v0,
465                         GLuint v1);
466 bool ValidateUniform2uiv(const Context *context,
467                          angle::EntryPoint entryPoint,
468                          UniformLocation locationPacked,
469                          GLsizei count,
470                          const GLuint *value);
471 bool ValidateUniform3ui(const Context *context,
472                         angle::EntryPoint entryPoint,
473                         UniformLocation locationPacked,
474                         GLuint v0,
475                         GLuint v1,
476                         GLuint v2);
477 bool ValidateUniform3uiv(const Context *context,
478                          angle::EntryPoint entryPoint,
479                          UniformLocation locationPacked,
480                          GLsizei count,
481                          const GLuint *value);
482 bool ValidateUniform4ui(const Context *context,
483                         angle::EntryPoint entryPoint,
484                         UniformLocation locationPacked,
485                         GLuint v0,
486                         GLuint v1,
487                         GLuint v2,
488                         GLuint v3);
489 bool ValidateUniform4uiv(const Context *context,
490                          angle::EntryPoint entryPoint,
491                          UniformLocation locationPacked,
492                          GLsizei count,
493                          const GLuint *value);
494 bool ValidateUniformBlockBinding(const Context *context,
495                                  angle::EntryPoint entryPoint,
496                                  ShaderProgramID programPacked,
497                                  UniformBlockIndex uniformBlockIndexPacked,
498                                  GLuint uniformBlockBinding);
499 bool ValidateUniformMatrix2x3fv(const Context *context,
500                                 angle::EntryPoint entryPoint,
501                                 UniformLocation locationPacked,
502                                 GLsizei count,
503                                 GLboolean transpose,
504                                 const GLfloat *value);
505 bool ValidateUniformMatrix2x4fv(const Context *context,
506                                 angle::EntryPoint entryPoint,
507                                 UniformLocation locationPacked,
508                                 GLsizei count,
509                                 GLboolean transpose,
510                                 const GLfloat *value);
511 bool ValidateUniformMatrix3x2fv(const Context *context,
512                                 angle::EntryPoint entryPoint,
513                                 UniformLocation locationPacked,
514                                 GLsizei count,
515                                 GLboolean transpose,
516                                 const GLfloat *value);
517 bool ValidateUniformMatrix3x4fv(const Context *context,
518                                 angle::EntryPoint entryPoint,
519                                 UniformLocation locationPacked,
520                                 GLsizei count,
521                                 GLboolean transpose,
522                                 const GLfloat *value);
523 bool ValidateUniformMatrix4x2fv(const Context *context,
524                                 angle::EntryPoint entryPoint,
525                                 UniformLocation locationPacked,
526                                 GLsizei count,
527                                 GLboolean transpose,
528                                 const GLfloat *value);
529 bool ValidateUniformMatrix4x3fv(const Context *context,
530                                 angle::EntryPoint entryPoint,
531                                 UniformLocation locationPacked,
532                                 GLsizei count,
533                                 GLboolean transpose,
534                                 const GLfloat *value);
535 bool ValidateUnmapBuffer(const Context *context,
536                          angle::EntryPoint entryPoint,
537                          BufferBinding targetPacked);
538 bool ValidateVertexAttribDivisor(const Context *context,
539                                  angle::EntryPoint entryPoint,
540                                  GLuint index,
541                                  GLuint divisor);
542 bool ValidateVertexAttribI4i(const Context *context,
543                              angle::EntryPoint entryPoint,
544                              GLuint index,
545                              GLint x,
546                              GLint y,
547                              GLint z,
548                              GLint w);
549 bool ValidateVertexAttribI4iv(const Context *context,
550                               angle::EntryPoint entryPoint,
551                               GLuint index,
552                               const GLint *v);
553 bool ValidateVertexAttribI4ui(const Context *context,
554                               angle::EntryPoint entryPoint,
555                               GLuint index,
556                               GLuint x,
557                               GLuint y,
558                               GLuint z,
559                               GLuint w);
560 bool ValidateVertexAttribI4uiv(const Context *context,
561                                angle::EntryPoint entryPoint,
562                                GLuint index,
563                                const GLuint *v);
564 bool ValidateVertexAttribIPointer(const Context *context,
565                                   angle::EntryPoint entryPoint,
566                                   GLuint index,
567                                   GLint size,
568                                   VertexAttribType typePacked,
569                                   GLsizei stride,
570                                   const void *pointer);
571 bool ValidateWaitSync(const Context *context,
572                       angle::EntryPoint entryPoint,
573                       GLsync sync,
574                       GLbitfield flags,
575                       GLuint64 timeout);
576 }  // namespace gl
577 
578 #endif  // LIBANGLE_VALIDATION_ES3_AUTOGEN_H_
579