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