• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // validationGL43.cpp: Validation functions for OpenGL 4.3 entry point parameters
8 
9 #include "libANGLE/validationGL43_autogen.h"
10 
11 namespace gl
12 {
13 
ValidateClearBufferData(Context * context,GLenum target,GLenum internalformat,GLenum format,GLenum type,const void * data)14 bool ValidateClearBufferData(Context *context,
15                              GLenum target,
16                              GLenum internalformat,
17                              GLenum format,
18                              GLenum type,
19                              const void *data)
20 {
21     return true;
22 }
23 
ValidateClearBufferSubData(Context * context,GLenum target,GLenum internalformat,GLintptr offset,GLsizeiptr size,GLenum format,GLenum type,const void * data)24 bool ValidateClearBufferSubData(Context *context,
25                                 GLenum target,
26                                 GLenum internalformat,
27                                 GLintptr offset,
28                                 GLsizeiptr size,
29                                 GLenum format,
30                                 GLenum type,
31                                 const void *data)
32 {
33     return true;
34 }
35 
ValidateCopyImageSubData(Context * context,GLuint srcName,GLenum srcTarget,GLint srcLevel,GLint srcX,GLint srcY,GLint srcZ,GLuint dstName,GLenum dstTarget,GLint dstLevel,GLint dstX,GLint dstY,GLint dstZ,GLsizei srcWidth,GLsizei srcHeight,GLsizei srcDepth)36 bool ValidateCopyImageSubData(Context *context,
37                               GLuint srcName,
38                               GLenum srcTarget,
39                               GLint srcLevel,
40                               GLint srcX,
41                               GLint srcY,
42                               GLint srcZ,
43                               GLuint dstName,
44                               GLenum dstTarget,
45                               GLint dstLevel,
46                               GLint dstX,
47                               GLint dstY,
48                               GLint dstZ,
49                               GLsizei srcWidth,
50                               GLsizei srcHeight,
51                               GLsizei srcDepth)
52 {
53     return true;
54 }
55 
ValidateDebugMessageCallback(Context * context,GLDEBUGPROC callback,const void * userParam)56 bool ValidateDebugMessageCallback(Context *context, GLDEBUGPROC callback, const void *userParam)
57 {
58     return true;
59 }
60 
ValidateDebugMessageControl(Context * context,GLenum source,GLenum type,GLenum severity,GLsizei count,const GLuint * ids,GLboolean enabled)61 bool ValidateDebugMessageControl(Context *context,
62                                  GLenum source,
63                                  GLenum type,
64                                  GLenum severity,
65                                  GLsizei count,
66                                  const GLuint *ids,
67                                  GLboolean enabled)
68 {
69     return true;
70 }
71 
ValidateDebugMessageInsert(Context * context,GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar * buf)72 bool ValidateDebugMessageInsert(Context *context,
73                                 GLenum source,
74                                 GLenum type,
75                                 GLuint id,
76                                 GLenum severity,
77                                 GLsizei length,
78                                 const GLchar *buf)
79 {
80     return true;
81 }
82 
ValidateGetDebugMessageLog(Context * context,GLuint count,GLsizei bufSize,GLenum * sources,GLenum * types,GLuint * ids,GLenum * severities,GLsizei * lengths,GLchar * messageLog)83 bool ValidateGetDebugMessageLog(Context *context,
84                                 GLuint count,
85                                 GLsizei bufSize,
86                                 GLenum *sources,
87                                 GLenum *types,
88                                 GLuint *ids,
89                                 GLenum *severities,
90                                 GLsizei *lengths,
91                                 GLchar *messageLog)
92 {
93     return true;
94 }
95 
ValidateGetInternalformati64v(Context * context,GLenum target,GLenum internalformat,GLenum pname,GLsizei bufSize,GLint64 * params)96 bool ValidateGetInternalformati64v(Context *context,
97                                    GLenum target,
98                                    GLenum internalformat,
99                                    GLenum pname,
100                                    GLsizei bufSize,
101                                    GLint64 *params)
102 {
103     return true;
104 }
105 
ValidateGetObjectLabel(Context * context,GLenum identifier,GLuint name,GLsizei bufSize,GLsizei * length,GLchar * label)106 bool ValidateGetObjectLabel(Context *context,
107                             GLenum identifier,
108                             GLuint name,
109                             GLsizei bufSize,
110                             GLsizei *length,
111                             GLchar *label)
112 {
113     return true;
114 }
115 
ValidateGetObjectPtrLabel(Context * context,const void * ptr,GLsizei bufSize,GLsizei * length,GLchar * label)116 bool ValidateGetObjectPtrLabel(Context *context,
117                                const void *ptr,
118                                GLsizei bufSize,
119                                GLsizei *length,
120                                GLchar *label)
121 {
122     return true;
123 }
124 
ValidateGetProgramResourceLocationIndex(Context * context,GLuint program,GLenum programInterface,const GLchar * name)125 bool ValidateGetProgramResourceLocationIndex(Context *context,
126                                              GLuint program,
127                                              GLenum programInterface,
128                                              const GLchar *name)
129 {
130     return true;
131 }
132 
ValidateInvalidateBufferData(Context * context,BufferID buffer)133 bool ValidateInvalidateBufferData(Context *context, BufferID buffer)
134 {
135     return true;
136 }
137 
ValidateInvalidateBufferSubData(Context * context,BufferID buffer,GLintptr offset,GLsizeiptr length)138 bool ValidateInvalidateBufferSubData(Context *context,
139                                      BufferID buffer,
140                                      GLintptr offset,
141                                      GLsizeiptr length)
142 {
143     return true;
144 }
145 
ValidateInvalidateTexImage(Context * context,TextureID texture,GLint level)146 bool ValidateInvalidateTexImage(Context *context, TextureID texture, GLint level)
147 {
148     return true;
149 }
150 
ValidateInvalidateTexSubImage(Context * context,TextureID texture,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth)151 bool ValidateInvalidateTexSubImage(Context *context,
152                                    TextureID texture,
153                                    GLint level,
154                                    GLint xoffset,
155                                    GLint yoffset,
156                                    GLint zoffset,
157                                    GLsizei width,
158                                    GLsizei height,
159                                    GLsizei depth)
160 {
161     return true;
162 }
163 
ValidateMultiDrawArraysIndirect(Context * context,GLenum mode,const void * indirect,GLsizei drawcount,GLsizei stride)164 bool ValidateMultiDrawArraysIndirect(Context *context,
165                                      GLenum mode,
166                                      const void *indirect,
167                                      GLsizei drawcount,
168                                      GLsizei stride)
169 {
170     return true;
171 }
172 
ValidateMultiDrawElementsIndirect(Context * context,GLenum mode,GLenum type,const void * indirect,GLsizei drawcount,GLsizei stride)173 bool ValidateMultiDrawElementsIndirect(Context *context,
174                                        GLenum mode,
175                                        GLenum type,
176                                        const void *indirect,
177                                        GLsizei drawcount,
178                                        GLsizei stride)
179 {
180     return true;
181 }
182 
ValidateObjectLabel(Context * context,GLenum identifier,GLuint name,GLsizei length,const GLchar * label)183 bool ValidateObjectLabel(Context *context,
184                          GLenum identifier,
185                          GLuint name,
186                          GLsizei length,
187                          const GLchar *label)
188 {
189     return true;
190 }
191 
ValidateObjectPtrLabel(Context * context,const void * ptr,GLsizei length,const GLchar * label)192 bool ValidateObjectPtrLabel(Context *context, const void *ptr, GLsizei length, const GLchar *label)
193 {
194     return true;
195 }
196 
ValidatePopDebugGroup(Context * context)197 bool ValidatePopDebugGroup(Context *context)
198 {
199     return true;
200 }
201 
ValidatePushDebugGroup(Context * context,GLenum source,GLuint id,GLsizei length,const GLchar * message)202 bool ValidatePushDebugGroup(Context *context,
203                             GLenum source,
204                             GLuint id,
205                             GLsizei length,
206                             const GLchar *message)
207 {
208     return true;
209 }
210 
ValidateShaderStorageBlockBinding(Context * context,GLuint program,GLuint storageBlockIndex,GLuint storageBlockBinding)211 bool ValidateShaderStorageBlockBinding(Context *context,
212                                        GLuint program,
213                                        GLuint storageBlockIndex,
214                                        GLuint storageBlockBinding)
215 {
216     return true;
217 }
218 
ValidateTexBufferRange(Context * context,GLenum target,GLenum internalformat,BufferID buffer,GLintptr offset,GLsizeiptr size)219 bool ValidateTexBufferRange(Context *context,
220                             GLenum target,
221                             GLenum internalformat,
222                             BufferID buffer,
223                             GLintptr offset,
224                             GLsizeiptr size)
225 {
226     return true;
227 }
228 
ValidateTexStorage3DMultisample(Context * context,TextureType targetPacked,GLsizei samples,GLenum internalformat,GLsizei width,GLsizei height,GLsizei depth,GLboolean fixedsamplelocations)229 bool ValidateTexStorage3DMultisample(Context *context,
230                                      TextureType targetPacked,
231                                      GLsizei samples,
232                                      GLenum internalformat,
233                                      GLsizei width,
234                                      GLsizei height,
235                                      GLsizei depth,
236                                      GLboolean fixedsamplelocations)
237 {
238     return true;
239 }
240 
ValidateTextureView(Context * context,TextureID texture,GLenum target,GLuint origtexture,GLenum internalformat,GLuint minlevel,GLuint numlevels,GLuint minlayer,GLuint numlayers)241 bool ValidateTextureView(Context *context,
242                          TextureID texture,
243                          GLenum target,
244                          GLuint origtexture,
245                          GLenum internalformat,
246                          GLuint minlevel,
247                          GLuint numlevels,
248                          GLuint minlayer,
249                          GLuint numlayers)
250 {
251     return true;
252 }
253 
ValidateVertexAttribLFormat(Context * context,GLuint attribindex,GLint size,GLenum type,GLuint relativeoffset)254 bool ValidateVertexAttribLFormat(Context *context,
255                                  GLuint attribindex,
256                                  GLint size,
257                                  GLenum type,
258                                  GLuint relativeoffset)
259 {
260     return true;
261 }
262 
263 }  // namespace gl
264