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