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.
7
// validationGL45.cpp: Validation functions for OpenGL 4.5 entry point parameters
9
#include "libANGLE/validationGL45_autogen.h"
14
bool ValidateBindTextureUnit(Context *context, GLuint unit, TextureID texture)
19
bool ValidateBlitNamedFramebuffer(Context *context,
20
GLuint readFramebuffer,
21
GLuint drawFramebuffer,
36
bool ValidateCheckNamedFramebufferStatus(Context *context, FramebufferID framebuffer, GLenum target)
41
bool ValidateClearNamedBufferData(Context *context,
43
GLenum internalformat,
51
bool ValidateClearNamedBufferSubData(Context *context,
53
GLenum internalformat,
63
bool ValidateClearNamedFramebufferfi(Context *context,
64
FramebufferID framebuffer,
73
bool ValidateClearNamedFramebufferfv(Context *context,
74
FramebufferID framebuffer,
82
bool ValidateClearNamedFramebufferiv(Context *context,
83
FramebufferID framebuffer,
91
bool ValidateClearNamedFramebufferuiv(Context *context,
92
FramebufferID framebuffer,
100
bool ValidateClipControl(Context *context, GLenum origin, GLenum depth)
105
bool ValidateCompressedTextureSubImage1D(Context *context,
117
bool ValidateCompressedTextureSubImage2D(Context *context,
131
bool ValidateCompressedTextureSubImage3D(Context *context,
147
bool ValidateCopyNamedBufferSubData(Context *context,
151
GLintptr writeOffset,
157
bool ValidateCopyTextureSubImage1D(Context *context,
168
bool ValidateCopyTextureSubImage2D(Context *context,
181
bool ValidateCopyTextureSubImage3D(Context *context,
195
bool ValidateCreateBuffers(Context *context, GLsizei n, BufferID *buffers)
200
bool ValidateCreateFramebuffers(Context *context, GLsizei n, GLuint *framebuffers)
205
bool ValidateCreateProgramPipelines(Context *context, GLsizei n, GLuint *pipelines)
210
bool ValidateCreateQueries(Context *context, GLenum target, GLsizei n, GLuint *ids)
215
bool ValidateCreateRenderbuffers(Context *context, GLsizei n, RenderbufferID *renderbuffers)
220
bool ValidateCreateSamplers(Context *context, GLsizei n, GLuint *samplers)
225
bool ValidateCreateTextures(Context *context, GLenum target, GLsizei n, GLuint *textures)
230
bool ValidateCreateTransformFeedbacks(Context *context, GLsizei n, GLuint *ids)
235
bool ValidateCreateVertexArrays(Context *context, GLsizei n, VertexArrayID *arrays)
240
bool ValidateDisableVertexArrayAttrib(Context *context, VertexArrayID vaobj, GLuint index)
245
bool ValidateEnableVertexArrayAttrib(Context *context, VertexArrayID vaobj, GLuint index)
250
bool ValidateFlushMappedNamedBufferRange(Context *context,
258
bool ValidateGenerateTextureMipmap(Context *context, TextureID texture)
263
bool ValidateGetCompressedTextureImage(Context *context,
272
bool ValidateGetCompressedTextureSubImage(Context *context,
287
bool ValidateGetNamedBufferParameteri64v(Context *context,
295
bool ValidateGetNamedBufferParameteriv(Context *context,
303
bool ValidateGetNamedBufferPointerv(Context *context, BufferID buffer, GLenum pname, void **params)
308
bool ValidateGetNamedBufferSubData(Context *context,
317
bool ValidateGetNamedFramebufferAttachmentParameteriv(Context *context,
318
FramebufferID framebuffer,
326
bool ValidateGetNamedFramebufferParameteriv(Context *context,
327
FramebufferID framebuffer,
334
bool ValidateGetNamedRenderbufferParameteriv(Context *context,
335
RenderbufferID renderbuffer,
342
bool ValidateGetQueryBufferObjecti64v(Context *context,
351
bool ValidateGetQueryBufferObjectiv(Context *context,
360
bool ValidateGetQueryBufferObjectui64v(Context *context,
369
bool ValidateGetQueryBufferObjectuiv(Context *context,
378
bool ValidateGetTextureImage(Context *context,
389
bool ValidateGetTextureLevelParameterfv(Context *context,
398
bool ValidateGetTextureLevelParameteriv(Context *context,
407
bool ValidateGetTextureParameterIiv(Context *context,
415
bool ValidateGetTextureParameterIuiv(Context *context,
423
bool ValidateGetTextureParameterfv(Context *context,
431
bool ValidateGetTextureParameteriv(Context *context, TextureID texture, GLenum pname, GLint *params)
436
bool ValidateGetTextureSubImage(Context *context,
453
bool ValidateGetTransformFeedbacki64_v(Context *context,
462
bool ValidateGetTransformFeedbacki_v(Context *context,
471
bool ValidateGetTransformFeedbackiv(Context *context, GLuint xfb, GLenum pname, GLint *param)
476
bool ValidateGetVertexArrayIndexed64iv(Context *context,
485
bool ValidateGetVertexArrayIndexediv(Context *context,
494
bool ValidateGetVertexArrayiv(Context *context, VertexArrayID vaobj, GLenum pname, GLint *param)
499
bool ValidateGetnColorTable(Context *context,
509
bool ValidateGetnCompressedTexImage(Context *context,
518
bool ValidateGetnConvolutionFilter(Context *context,
528
bool ValidateGetnHistogram(Context *context,
539
bool ValidateGetnMapdv(Context *context, GLenum target, GLenum query, GLsizei bufSize, GLdouble *v)
544
bool ValidateGetnMapfv(Context *context, GLenum target, GLenum query, GLsizei bufSize, GLfloat *v)
549
bool ValidateGetnMapiv(Context *context, GLenum target, GLenum query, GLsizei bufSize, GLint *v)
554
bool ValidateGetnMinmax(Context *context,
565
bool ValidateGetnPixelMapfv(Context *context, GLenum map, GLsizei bufSize, GLfloat *values)
570
bool ValidateGetnPixelMapuiv(Context *context, GLenum map, GLsizei bufSize, GLuint *values)
575
bool ValidateGetnPixelMapusv(Context *context, GLenum map, GLsizei bufSize, GLushort *values)
580
bool ValidateGetnPolygonStipple(Context *context, GLsizei bufSize, GLubyte *pattern)
585
bool ValidateGetnSeparableFilter(Context *context,
591
GLsizei columnBufSize,
598
bool ValidateGetnTexImage(Context *context,
609
bool ValidateGetnUniformdv(Context *context,
610
ShaderProgramID program,
618
bool ValidateInvalidateNamedFramebufferData(Context *context,
619
FramebufferID framebuffer,
620
GLsizei numAttachments,
621
const GLenum *attachments)
626
bool ValidateInvalidateNamedFramebufferSubData(Context *context,
627
FramebufferID framebuffer,
628
GLsizei numAttachments,
629
const GLenum *attachments,
638
bool ValidateMapNamedBuffer(Context *context, BufferID buffer, GLenum access)
643
bool ValidateMapNamedBufferRange(Context *context,
652
bool ValidateNamedBufferData(Context *context,
661
bool ValidateNamedBufferStorage(Context *context,
670
bool ValidateNamedBufferSubData(Context *context,
679
bool ValidateNamedFramebufferDrawBuffer(Context *context, FramebufferID framebuffer, GLenum buf)
684
bool ValidateNamedFramebufferDrawBuffers(Context *context,
685
FramebufferID framebuffer,
692
bool ValidateNamedFramebufferParameteri(Context *context,
693
FramebufferID framebuffer,
700
bool ValidateNamedFramebufferReadBuffer(Context *context, FramebufferID framebuffer, GLenum src)
705
bool ValidateNamedFramebufferRenderbuffer(Context *context,
706
FramebufferID framebuffer,
708
GLenum renderbuffertarget,
709
RenderbufferID renderbuffer)
714
bool ValidateNamedFramebufferTexture(Context *context,
715
FramebufferID framebuffer,
723
bool ValidateNamedFramebufferTextureLayer(Context *context,
724
FramebufferID framebuffer,
733
bool ValidateNamedRenderbufferStorage(Context *context,
734
RenderbufferID renderbuffer,
735
GLenum internalformat,
742
bool ValidateNamedRenderbufferStorageMultisample(Context *context,
743
RenderbufferID renderbuffer,
745
GLenum internalformat,
752
bool ValidateTextureBarrier(Context *context)
757
bool ValidateTextureBuffer(Context *context,
759
GLenum internalformat,
765
bool ValidateTextureBufferRange(Context *context,
767
GLenum internalformat,
775
bool ValidateTextureParameterIiv(Context *context,
783
bool ValidateTextureParameterIuiv(Context *context,
786
const GLuint *params)
791
bool ValidateTextureParameterf(Context *context, TextureID texture, GLenum pname, GLfloat param)
796
bool ValidateTextureParameterfv(Context *context,
799
const GLfloat *param)
804
bool ValidateTextureParameteri(Context *context, TextureID texture, GLenum pname, GLint param)
809
bool ValidateTextureParameteriv(Context *context,
817
bool ValidateTextureStorage1D(Context *context,
820
GLenum internalformat,
826
bool ValidateTextureStorage2D(Context *context,
829
GLenum internalformat,
836
bool ValidateTextureStorage2DMultisample(Context *context,
839
GLenum internalformat,
842
GLboolean fixedsamplelocations)
847
bool ValidateTextureStorage3D(Context *context,
850
GLenum internalformat,
858
bool ValidateTextureStorage3DMultisample(Context *context,
861
GLenum internalformat,
865
GLboolean fixedsamplelocations)
870
bool ValidateTextureSubImage1D(Context *context,
882
bool ValidateTextureSubImage2D(Context *context,
896
bool ValidateTextureSubImage3D(Context *context,
912
bool ValidateTransformFeedbackBufferBase(Context *context,
920
bool ValidateTransformFeedbackBufferRange(Context *context,
930
bool ValidateUnmapNamedBuffer(Context *context, BufferID buffer)
935
bool ValidateVertexArrayAttribBinding(Context *context,
943
bool ValidateVertexArrayAttribFormat(Context *context,
948
GLboolean normalized,
949
GLuint relativeoffset)
954
bool ValidateVertexArrayAttribIFormat(Context *context,
959
GLuint relativeoffset)
964
bool ValidateVertexArrayAttribLFormat(Context *context,
969
GLuint relativeoffset)
974
bool ValidateVertexArrayBindingDivisor(Context *context,
982
bool ValidateVertexArrayElementBuffer(Context *context, VertexArrayID vaobj, BufferID buffer)
987
bool ValidateVertexArrayVertexBuffer(Context *context,
997
bool ValidateVertexArrayVertexBuffers(Context *context,
1001
const BufferID *buffers,
1002
const GLintptr *offsets,
1003
const GLsizei *strides)