1 #ifndef DALI_INTERNAL_GL_IMPLEMENTATION_H
2 #define DALI_INTERNAL_GL_IMPLEMENTATION_H
5 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <GLES2/gl2.h>
23 #include <GLES2/gl2ext.h>
24 #include <dali/devel-api/threading/conditional-wait.h>
25 #include <dali/integration-api/gl-abstraction.h>
26 #include <dali/internal/graphics/common/egl-include.h>
27 #include <dali/public-api/common/vector-wrapper.h>
33 #include <dali/devel-api/adaptor-framework/environment-variable.h>
34 #include <dali/internal/graphics/gles/gl-extensions-support.h>
35 #include <dali/internal/graphics/gles/gles-abstraction.h>
36 #include <dali/internal/graphics/gles/gles2-implementation.h>
37 #include <dali/internal/graphics/gles/gles3-implementation.h>
38 #include <dali/internal/system/common/time-service.h>
48 static constexpr int32_t INITIAL_GLES_VERSION = 30;
49 static constexpr int32_t GLES_VERSION_SUPPORT_BLEND_EQUATION_ADVANCED = 32;
51 static constexpr int32_t MINIMUM_GLES_VERSION_GET_MAXIMUM_MULTISAMPLES_TO_TEXTURE = 30;
53 static constexpr const char* LEGACY_SHADING_LANGUAGE_VERSION = "100";
55 static constexpr const char* DEFAULT_SAMPLER_TYPE = "sampler2D";
57 static constexpr const char* FRAGMENT_SHADER_ADVANCED_BLEND_EQUATION_PREFIX =
58 "#ifdef GL_KHR_blend_equation_advanced\n"
59 "#extension GL_KHR_blend_equation_advanced : enable\n"
62 "#if defined(GL_KHR_blend_equation_advanced) || __VERSION__>=320\n"
63 " layout(blend_support_all_equations) out;\n"
66 static constexpr const char* FRAGMENT_SHADER_OUTPUT_COLOR_STRING =
67 "out mediump vec4 fragColor;\n";
69 static constexpr const char* OES_EGL_IMAGE_EXTERNAL_STRING = "#extension GL_OES_EGL_image_external:require\n";
71 static constexpr const char* OES_EGL_IMAGE_EXTERNAL_STRING_ESSL3 = "#extension GL_OES_EGL_image_external_essl3:require\n";
73 // Threshold time in miliseconds
74 constexpr auto PERFORMANCE_LOG_THRESHOLD_TIME_ENV = "DALI_EGL_PERFORMANCE_LOG_THRESHOLD_TIME";
76 uint32_t GetPerformanceLogThresholdTime()
78 auto timeString = Dali::EnvironmentVariable::GetEnvironmentVariable(PERFORMANCE_LOG_THRESHOLD_TIME_ENV);
79 uint32_t time = timeString ? static_cast<uint32_t>(std::atoi(timeString)) : 0u;
86 * GlImplementation is a concrete implementation for GlAbstraction.
87 * The class provides an OpenGL-ES 2.0 or 3.0 implementation.
88 * The class is provided when creating the Integration::Core object.
90 class GlImplementation : public Dali::Integration::GlAbstraction
94 : mGlExtensionSupportedCacheList(),
95 mContextCreatedWaitCondition(),
97 mMaxTextureSamples(0),
98 mVertexShaderPrefix(""),
99 mGlesVersion(INITIAL_GLES_VERSION),
100 mShadingLanguageVersion(100),
101 mShadingLanguageVersionCached(false),
102 mIsSurfacelessContextSupported(false),
103 mIsContextCreated(false)
105 mImpl.reset(new Gles3Implementation());
108 virtual ~GlImplementation()
112 void PreRender() override
114 /* Do nothing in main implementation */
117 void PostRender() override
119 /* Do nothing in main implementation */
122 void ContextCreated()
124 glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize);
126 // Since gles 2.0 didn't return well for GL_MAJOR_VERSION and GL_MINOR_VERSION,
127 // Only change gles version for the device that support above gles 3.0.
128 if(mGlesVersion >= INITIAL_GLES_VERSION)
130 GLint majorVersion, minorVersion;
131 glGetIntegerv(GL_MAJOR_VERSION, &majorVersion);
132 glGetIntegerv(GL_MINOR_VERSION, &minorVersion);
133 mGlesVersion = majorVersion * 10 + minorVersion;
136 if(mGlesVersion >= GLES_VERSION_SUPPORT_BLEND_EQUATION_ADVANCED)
138 SetIsAdvancedBlendEquationSupported(true);
141 if(mGlExtensionSupportedCacheList.NeedFullCheck())
143 // fully check gl extensions if we miss some extension supported
144 mGlExtensionSupportedCacheList.EnsureGlExtensionSupportedCheck();
147 if(IsMultisampledRenderToTextureSupported())
149 mMaxTextureSamples = 0;
151 if(mGlesVersion >= MINIMUM_GLES_VERSION_GET_MAXIMUM_MULTISAMPLES_TO_TEXTURE)
153 // Try to get maximum FBO MSAA sampling level from GL_RENDERBUFFER first.
154 // If false, than ask again to GL_MAX_SAMPLES_EXT.
155 GetInternalformativ(GL_RENDERBUFFER, GL_RGBA8, GL_SAMPLES, 1, &mMaxTextureSamples);
157 if(mMaxTextureSamples == 0)
159 glGetIntegerv(GL_MAX_SAMPLES_EXT, &mMaxTextureSamples);
163 if(!mShadingLanguageVersionCached)
165 std::istringstream shadingLanguageVersionStream(reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION)));
167 uint32_t tokenCount = 0;
168 while(std::getline(shadingLanguageVersionStream, token, ' '))
170 if(tokenCount == 3 && token == "ES")
172 std::getline(shadingLanguageVersionStream, token, '.');
173 mShadingLanguageVersion = std::atoi(token.c_str());
174 mShadingLanguageVersion *= 100;
175 std::getline(shadingLanguageVersionStream, token, '.');
176 mShadingLanguageVersion += std::atoi(token.c_str());
183 mLogThreshold = GetPerformanceLogThresholdTime();
184 mLogEnabled = mLogThreshold > 0 ? true : false;
187 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
188 mIsContextCreated = true;
189 mContextCreatedWaitCondition.Notify(lock);
193 void SetGlesVersion(const int32_t glesVersion)
195 if(mGlesVersion / 10 != glesVersion / 10)
197 mGlesVersion = glesVersion;
198 if(mGlesVersion >= 30)
200 mImpl.reset(new Gles3Implementation());
204 mImpl.reset(new Gles2Implementation());
209 void SetIsSurfacelessContextSupported(const bool isSupported)
211 mIsSurfacelessContextSupported = isSupported;
214 bool IsSurfacelessContextSupported() const override
216 return mIsSurfacelessContextSupported;
219 void SetIsAdvancedBlendEquationSupported(const bool isSupported)
221 mGlExtensionSupportedCacheList.SetSupported(GlExtensionCache::GlExtensionCheckerType::BLEND_EQUATION_ADVANCED, isSupported);
224 bool IsAdvancedBlendEquationSupported()
226 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
228 const auto type = GlExtensionCache::GlExtensionCheckerType::BLEND_EQUATION_ADVANCED;
229 if(!mIsContextCreated && !mGlExtensionSupportedCacheList.GetCached(type))
231 mContextCreatedWaitCondition.Wait(lock);
233 return mGlExtensionSupportedCacheList.GetSupported(type);
236 void SetIsMultisampledRenderToTextureSupported(const bool isSupported)
238 mGlExtensionSupportedCacheList.SetSupported(GlExtensionCache::GlExtensionCheckerType::MULTISAMPLED_RENDER_TO_TEXTURE, isSupported);
241 bool IsMultisampledRenderToTextureSupported()
243 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
245 const auto type = GlExtensionCache::GlExtensionCheckerType::MULTISAMPLED_RENDER_TO_TEXTURE;
246 if(!mIsContextCreated && !mGlExtensionSupportedCacheList.GetCached(type))
248 mContextCreatedWaitCondition.Wait(lock);
250 return mGlExtensionSupportedCacheList.GetSupported(type);
253 bool IsBlendEquationSupported(DevelBlendEquation::Type blendEquation)
255 switch(blendEquation)
257 case DevelBlendEquation::ADD:
258 case DevelBlendEquation::SUBTRACT:
259 case DevelBlendEquation::REVERSE_SUBTRACT:
263 case DevelBlendEquation::MIN:
264 case DevelBlendEquation::MAX:
266 return (GetGlesVersion() >= 30);
268 case DevelBlendEquation::MULTIPLY:
269 case DevelBlendEquation::SCREEN:
270 case DevelBlendEquation::OVERLAY:
271 case DevelBlendEquation::DARKEN:
272 case DevelBlendEquation::LIGHTEN:
273 case DevelBlendEquation::COLOR_DODGE:
274 case DevelBlendEquation::COLOR_BURN:
275 case DevelBlendEquation::HARD_LIGHT:
276 case DevelBlendEquation::SOFT_LIGHT:
277 case DevelBlendEquation::DIFFERENCE:
278 case DevelBlendEquation::EXCLUSION:
279 case DevelBlendEquation::HUE:
280 case DevelBlendEquation::SATURATION:
281 case DevelBlendEquation::COLOR:
282 case DevelBlendEquation::LUMINOSITY:
284 return IsAdvancedBlendEquationSupported();
296 std::string GetShaderVersionPrefix()
298 if(mShaderVersionPrefix == "")
300 mShaderVersionPrefix = "#version " + std::to_string(GetShadingLanguageVersion());
301 if(GetShadingLanguageVersion() < 300)
303 mShaderVersionPrefix += "\n";
307 mShaderVersionPrefix += " es\n";
310 return mShaderVersionPrefix;
313 std::string GetVertexShaderPrefix()
315 if(mVertexShaderPrefix == "")
317 mVertexShaderPrefix = GetShaderVersionPrefix();
319 if(GetShadingLanguageVersion() < 300)
321 mVertexShaderPrefix += "#define INPUT attribute\n";
322 mVertexShaderPrefix += "#define OUTPUT varying\n";
326 mVertexShaderPrefix += "#define INPUT in\n";
327 mVertexShaderPrefix += "#define OUTPUT out\n";
330 return mVertexShaderPrefix;
333 std::string GetFragmentShaderPrefix()
335 if(mFragmentShaderPrefix == "")
337 mFragmentShaderPrefix = GetShaderVersionPrefix();
339 if(GetShadingLanguageVersion() < 300)
341 mFragmentShaderPrefix += "#define INPUT varying\n";
342 mFragmentShaderPrefix += "#define OUT_COLOR gl_FragColor\n";
343 mFragmentShaderPrefix += "#define TEXTURE texture2D\n";
347 mFragmentShaderPrefix += "#define INPUT in\n";
348 mFragmentShaderPrefix += "#define OUT_COLOR fragColor\n";
349 mFragmentShaderPrefix += "#define TEXTURE texture\n";
351 if(IsAdvancedBlendEquationSupported())
353 mFragmentShaderPrefix += FRAGMENT_SHADER_ADVANCED_BLEND_EQUATION_PREFIX;
356 mFragmentShaderPrefix += FRAGMENT_SHADER_OUTPUT_COLOR_STRING;
359 return mFragmentShaderPrefix;
362 bool TextureRequiresConverting(const GLenum imageGlFormat, const GLenum textureGlFormat, const bool isSubImage) const override
364 bool convert = ((imageGlFormat == GL_RGB) && (textureGlFormat == GL_RGBA));
365 if(mGlesVersion >= 30)
367 // Don't convert manually from RGB to RGBA if GLES >= 3.0 and a sub-image is uploaded.
368 convert = (convert && !isSubImage);
373 int GetMaxTextureSize()
375 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
376 if(!mIsContextCreated)
378 mContextCreatedWaitCondition.Wait(lock);
380 return mMaxTextureSize;
383 int GetMaxTextureSamples()
385 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
386 if(!mIsContextCreated)
388 mContextCreatedWaitCondition.Wait(lock);
390 return mMaxTextureSamples;
393 int32_t GetGlesVersion()
395 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
396 if(!mIsContextCreated)
398 mContextCreatedWaitCondition.Wait(lock);
403 void SetShadingLanguageVersion(int shadingLanguageVersion)
405 mShadingLanguageVersion = shadingLanguageVersion;
406 mShadingLanguageVersionCached = true;
409 int GetShadingLanguageVersion()
411 ConditionalWait::ScopedLock lock(mContextCreatedWaitCondition);
412 if(!mIsContextCreated && !mShadingLanguageVersionCached)
414 mContextCreatedWaitCondition.Wait(lock);
416 return mShadingLanguageVersion;
419 bool ApplyNativeFragmentShader(std::string& shader, const char* customSamplerType)
421 bool modified = false;
422 std::string versionString = "#version";
423 size_t versionPosition = shader.find(versionString);
424 if(versionPosition != std::string::npos)
426 std::string extensionString;
427 size_t shadingLanguageVersionPosition = shader.find_first_not_of(" \t", versionPosition + versionString.length());
428 if(shadingLanguageVersionPosition != std::string::npos &&
429 shader.substr(shadingLanguageVersionPosition, 3) == LEGACY_SHADING_LANGUAGE_VERSION)
431 extensionString = OES_EGL_IMAGE_EXTERNAL_STRING;
435 extensionString = OES_EGL_IMAGE_EXTERNAL_STRING_ESSL3;
438 if(shader.find(extensionString) == std::string::npos)
441 size_t extensionPosition = shader.find_first_of("\n", versionPosition) + 1;
442 shader.insert(extensionPosition, extensionString);
447 if(shader.find(OES_EGL_IMAGE_EXTERNAL_STRING) == std::string::npos)
450 shader = OES_EGL_IMAGE_EXTERNAL_STRING + shader;
454 if(shader.find(customSamplerType) == std::string::npos)
456 size_t pos = shader.find(DEFAULT_SAMPLER_TYPE);
457 if(pos != std::string::npos)
460 shader.replace(pos, strlen(DEFAULT_SAMPLER_TYPE), customSamplerType);
469 void ActiveTexture(GLenum texture) override
471 glActiveTexture(texture);
474 void AttachShader(GLuint program, GLuint shader) override
476 glAttachShader(program, shader);
479 void BindAttribLocation(GLuint program, GLuint index, const char* name) override
481 glBindAttribLocation(program, index, name);
484 void BindBuffer(GLenum target, GLuint buffer) override
486 glBindBuffer(target, buffer);
489 void BindFramebuffer(GLenum target, GLuint framebuffer) override
491 glBindFramebuffer(target, framebuffer);
494 void BindRenderbuffer(GLenum target, GLuint renderbuffer) override
496 glBindRenderbuffer(target, renderbuffer);
499 void BindTexture(GLenum target, GLuint texture) override
501 glBindTexture(target, texture);
504 void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) override
506 glBlendColor(red, green, blue, alpha);
509 void BlendEquation(GLenum mode) override
511 glBlendEquation(mode);
514 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) override
516 glBlendEquationSeparate(modeRGB, modeAlpha);
519 void BlendFunc(GLenum sfactor, GLenum dfactor) override
521 glBlendFunc(sfactor, dfactor);
524 void BlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) override
526 glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
529 void BufferData(GLenum target, GLsizeiptr size, const void* data, GLenum usage) override
531 glBufferData(target, size, data, usage);
534 void BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void* data) override
536 glBufferSubData(target, offset, size, data);
539 GLenum CheckFramebufferStatus(GLenum target) override
541 return glCheckFramebufferStatus(target);
544 void Clear(GLbitfield mask) override
546 uint32_t startTime = 0, endTime = 0;
549 startTime = TimeService::GetMilliSeconds();
556 endTime = TimeService::GetMilliSeconds();
557 if(endTime - startTime > mLogThreshold)
559 DALI_LOG_DEBUG_INFO("glClear takes long time! [%u ms]\n", endTime - startTime);
564 void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) override
566 glClearColor(red, green, blue, alpha);
569 void ClearDepthf(GLclampf depth) override
571 glClearDepthf(depth);
574 void ClearStencil(GLint s) override
579 void ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) override
581 glColorMask(red, green, blue, alpha);
584 void CompileShader(GLuint shader) override
586 glCompileShader(shader);
589 void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data) override
591 glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
594 void CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data) override
596 glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
599 void CopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) override
601 glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
604 void CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) override
606 glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
609 GLuint CreateProgram(void) override
611 return glCreateProgram();
614 GLuint CreateShader(GLenum type) override
616 return glCreateShader(type);
619 void CullFace(GLenum mode) override
624 void DeleteBuffers(GLsizei n, const GLuint* buffers) override
626 glDeleteBuffers(n, buffers);
629 void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) override
631 glDeleteFramebuffers(n, framebuffers);
634 void DeleteProgram(GLuint program) override
636 glDeleteProgram(program);
639 void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) override
641 glDeleteRenderbuffers(n, renderbuffers);
644 void DeleteShader(GLuint shader) override
646 glDeleteShader(shader);
649 void DeleteTextures(GLsizei n, const GLuint* textures) override
651 glDeleteTextures(n, textures);
654 void DepthFunc(GLenum func) override
659 void DepthMask(GLboolean flag) override
664 void DepthRangef(GLclampf zNear, GLclampf zFar) override
666 glDepthRangef(zNear, zFar);
669 void DetachShader(GLuint program, GLuint shader) override
671 glDetachShader(program, shader);
674 void Disable(GLenum cap) override
679 void DisableVertexAttribArray(GLuint index) override
681 glDisableVertexAttribArray(index);
684 void DrawArrays(GLenum mode, GLint first, GLsizei count) override
686 glDrawArrays(mode, first, count);
689 void DrawElements(GLenum mode, GLsizei count, GLenum type, const void* indices) override
691 glDrawElements(mode, count, type, indices);
694 void Enable(GLenum cap) override
699 void EnableVertexAttribArray(GLuint index) override
701 glEnableVertexAttribArray(index);
704 void Finish(void) override
709 void Flush(void) override
714 void FramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) override
716 glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
719 void FramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) override
721 glFramebufferTexture2D(target, attachment, textarget, texture, level);
724 void FrontFace(GLenum mode) override
729 void GenBuffers(GLsizei n, GLuint* buffers) override
731 glGenBuffers(n, buffers);
734 void GenerateMipmap(GLenum target) override
736 glGenerateMipmap(target);
739 void GenFramebuffers(GLsizei n, GLuint* framebuffers) override
741 glGenFramebuffers(n, framebuffers);
744 void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) override
746 glGenRenderbuffers(n, renderbuffers);
749 void GenTextures(GLsizei n, GLuint* textures) override
751 glGenTextures(n, textures);
754 void GetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name) override
756 glGetActiveAttrib(program, index, bufsize, length, size, type, name);
759 void GetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name) override
761 glGetActiveUniform(program, index, bufsize, length, size, type, name);
764 void GetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) override
766 glGetAttachedShaders(program, maxcount, count, shaders);
769 int GetAttribLocation(GLuint program, const char* name) override
771 return glGetAttribLocation(program, name);
774 void GetBooleanv(GLenum pname, GLboolean* params) override
776 glGetBooleanv(pname, params);
779 void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) override
781 glGetBufferParameteriv(target, pname, params);
784 GLenum GetError(void) override
789 void GetFloatv(GLenum pname, GLfloat* params) override
791 glGetFloatv(pname, params);
794 void GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params) override
796 glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
799 void GetIntegerv(GLenum pname, GLint* params) override
801 glGetIntegerv(pname, params);
804 void GetProgramiv(GLuint program, GLenum pname, GLint* params) override
806 glGetProgramiv(program, pname, params);
809 void GetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) override
811 glGetProgramInfoLog(program, bufsize, length, infolog);
814 void GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) override
816 glGetRenderbufferParameteriv(target, pname, params);
819 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override
821 glGetShaderiv(shader, pname, params);
824 void GetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) override
826 glGetShaderInfoLog(shader, bufsize, length, infolog);
829 void GetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) override
831 glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
834 void GetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, char* source) override
836 glGetShaderSource(shader, bufsize, length, source);
839 const GLubyte* GetString(GLenum name) override
841 return glGetString(name);
844 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) override
846 glGetTexParameterfv(target, pname, params);
849 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) override
851 glGetTexParameteriv(target, pname, params);
854 void GetUniformfv(GLuint program, GLint location, GLfloat* params) override
856 glGetUniformfv(program, location, params);
859 void GetUniformiv(GLuint program, GLint location, GLint* params) override
861 glGetUniformiv(program, location, params);
864 int GetUniformLocation(GLuint program, const char* name) override
866 return glGetUniformLocation(program, name);
869 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) override
871 glGetVertexAttribfv(index, pname, params);
874 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override
876 glGetVertexAttribiv(index, pname, params);
879 void GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) override
881 glGetVertexAttribPointerv(index, pname, pointer);
884 void Hint(GLenum target, GLenum mode) override
886 glHint(target, mode);
889 GLboolean IsBuffer(GLuint buffer) override
891 return glIsBuffer(buffer);
894 GLboolean IsEnabled(GLenum cap) override
896 return glIsEnabled(cap);
899 GLboolean IsFramebuffer(GLuint framebuffer) override
901 return glIsFramebuffer(framebuffer);
904 GLboolean IsProgram(GLuint program) override
906 return glIsProgram(program);
909 GLboolean IsRenderbuffer(GLuint renderbuffer) override
911 return glIsRenderbuffer(renderbuffer);
914 GLboolean IsShader(GLuint shader) override
916 return glIsShader(shader);
919 GLboolean IsTexture(GLuint texture) override
921 return glIsTexture(texture);
924 void LineWidth(GLfloat width) override
929 void LinkProgram(GLuint program) override
931 glLinkProgram(program);
934 void PixelStorei(GLenum pname, GLint param) override
936 glPixelStorei(pname, param);
939 void PolygonOffset(GLfloat factor, GLfloat units) override
941 glPolygonOffset(factor, units);
944 void ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels) override
946 glReadPixels(x, y, width, height, format, type, pixels);
949 void ReleaseShaderCompiler(void) override
951 glReleaseShaderCompiler();
954 void RenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) override
956 glRenderbufferStorage(target, internalformat, width, height);
959 void SampleCoverage(GLclampf value, GLboolean invert) override
961 glSampleCoverage(value, invert);
964 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) override
966 glScissor(x, y, width, height);
969 void ShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length) override
971 glShaderBinary(n, shaders, binaryformat, binary, length);
974 void ShaderSource(GLuint shader, GLsizei count, const char** string, const GLint* length) override
976 glShaderSource(shader, count, string, length);
979 void StencilFunc(GLenum func, GLint ref, GLuint mask) override
981 glStencilFunc(func, ref, mask);
984 void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) override
986 glStencilFuncSeparate(face, func, ref, mask);
989 void StencilMask(GLuint mask) override
994 void StencilMaskSeparate(GLenum face, GLuint mask) override
996 glStencilMaskSeparate(face, mask);
999 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) override
1001 glStencilOp(fail, zfail, zpass);
1004 void StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) override
1006 glStencilOpSeparate(face, fail, zfail, zpass);
1009 void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels) override
1011 glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
1014 void TexParameterf(GLenum target, GLenum pname, GLfloat param) override
1016 glTexParameterf(target, pname, param);
1019 void TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) override
1021 glTexParameterfv(target, pname, params);
1024 void TexParameteri(GLenum target, GLenum pname, GLint param) override
1026 glTexParameteri(target, pname, param);
1029 void TexParameteriv(GLenum target, GLenum pname, const GLint* params) override
1031 glTexParameteriv(target, pname, params);
1034 void TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels) override
1036 glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
1039 void Uniform1f(GLint location, GLfloat x) override
1041 glUniform1f(location, x);
1044 void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) override
1046 glUniform1fv(location, count, v);
1049 void Uniform1i(GLint location, GLint x) override
1051 glUniform1i(location, x);
1054 void Uniform1iv(GLint location, GLsizei count, const GLint* v) override
1056 glUniform1iv(location, count, v);
1059 void Uniform2f(GLint location, GLfloat x, GLfloat y) override
1061 glUniform2f(location, x, y);
1064 void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) override
1066 glUniform2fv(location, count, v);
1069 void Uniform2i(GLint location, GLint x, GLint y) override
1071 glUniform2i(location, x, y);
1074 void Uniform2iv(GLint location, GLsizei count, const GLint* v) override
1076 glUniform2iv(location, count, v);
1079 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) override
1081 glUniform3f(location, x, y, z);
1084 void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) override
1086 glUniform3fv(location, count, v);
1089 void Uniform3i(GLint location, GLint x, GLint y, GLint z) override
1091 glUniform3i(location, x, y, z);
1094 void Uniform3iv(GLint location, GLsizei count, const GLint* v) override
1096 glUniform3iv(location, count, v);
1099 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) override
1101 glUniform4f(location, x, y, z, w);
1104 void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) override
1106 glUniform4fv(location, count, v);
1109 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) override
1111 glUniform4i(location, x, y, z, w);
1114 void Uniform4iv(GLint location, GLsizei count, const GLint* v) override
1116 glUniform4iv(location, count, v);
1119 void UniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1121 glUniformMatrix2fv(location, count, transpose, value);
1124 void UniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1126 glUniformMatrix3fv(location, count, transpose, value);
1129 void UniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1131 glUniformMatrix4fv(location, count, transpose, value);
1134 void UseProgram(GLuint program) override
1136 glUseProgram(program);
1139 void ValidateProgram(GLuint program) override
1141 glValidateProgram(program);
1144 void VertexAttrib1f(GLuint indx, GLfloat x) override
1146 glVertexAttrib1f(indx, x);
1149 void VertexAttrib1fv(GLuint indx, const GLfloat* values) override
1151 glVertexAttrib1fv(indx, values);
1154 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) override
1156 glVertexAttrib2f(indx, x, y);
1159 void VertexAttrib2fv(GLuint indx, const GLfloat* values) override
1161 glVertexAttrib2fv(indx, values);
1164 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) override
1166 glVertexAttrib3f(indx, x, y, z);
1169 void VertexAttrib3fv(GLuint indx, const GLfloat* values) override
1171 glVertexAttrib3fv(indx, values);
1174 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) override
1176 glVertexAttrib4f(indx, x, y, z, w);
1179 void VertexAttrib4fv(GLuint indx, const GLfloat* values) override
1181 glVertexAttrib4fv(indx, values);
1184 void VertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr) override
1186 glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
1189 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override
1191 glViewport(x, y, width, height);
1196 void ReadBuffer(GLenum mode) override
1198 mImpl->ReadBuffer(mode);
1201 void DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid* indices) override
1203 mImpl->DrawRangeElements(mode, start, end, count, type, indices);
1206 void TexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels) override
1208 mImpl->TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels);
1211 void TexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels) override
1213 mImpl->TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
1216 void CopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) override
1218 mImpl->CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
1221 void CompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data) override
1223 mImpl->CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data);
1226 void CompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data) override
1228 mImpl->CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
1231 void GenQueries(GLsizei n, GLuint* ids) override
1233 mImpl->GenQueries(n, ids);
1236 void DeleteQueries(GLsizei n, const GLuint* ids) override
1238 mImpl->DeleteQueries(n, ids);
1241 GLboolean IsQuery(GLuint id) override
1243 return mImpl->IsQuery(id);
1246 void BeginQuery(GLenum target, GLuint id) override
1248 mImpl->BeginQuery(target, id);
1251 void EndQuery(GLenum target) override
1253 mImpl->EndQuery(target);
1256 void GetQueryiv(GLenum target, GLenum pname, GLint* params) override
1258 mImpl->GetQueryiv(target, pname, params);
1261 void GetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params) override
1263 mImpl->GetQueryObjectuiv(id, pname, params);
1266 GLboolean UnmapBuffer(GLenum target) override
1268 return mImpl->UnmapBuffer(target);
1271 void GetBufferPointerv(GLenum target, GLenum pname, GLvoid** params) override
1273 mImpl->GetBufferPointerv(target, pname, params);
1276 void DrawBuffers(GLsizei n, const GLenum* bufs) override
1278 mImpl->DrawBuffers(n, bufs);
1281 void UniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1283 mImpl->UniformMatrix2x3fv(location, count, transpose, value);
1286 void UniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1288 mImpl->UniformMatrix3x2fv(location, count, transpose, value);
1291 void UniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1293 mImpl->UniformMatrix2x4fv(location, count, transpose, value);
1296 void UniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1298 mImpl->UniformMatrix4x2fv(location, count, transpose, value);
1301 void UniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1303 mImpl->UniformMatrix3x4fv(location, count, transpose, value);
1306 void UniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) override
1308 mImpl->UniformMatrix4x3fv(location, count, transpose, value);
1311 void BlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) override
1313 mImpl->BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
1316 void RenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) override
1318 mImpl->RenderbufferStorageMultisample(target, samples, internalformat, width, height);
1321 void FramebufferTexture2DMultisample(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples) override
1323 mImpl->FramebufferTexture2DMultisample(target, attachment, textarget, texture, level, samples);
1326 void FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) override
1328 mImpl->FramebufferTextureLayer(target, attachment, texture, level, layer);
1331 GLvoid* MapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) override
1333 return mImpl->MapBufferRange(target, offset, length, access);
1336 void FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) override
1338 mImpl->FlushMappedBufferRange(target, offset, length);
1341 void BindVertexArray(GLuint array) override
1343 mImpl->BindVertexArray(array);
1346 void DeleteVertexArrays(GLsizei n, const GLuint* arrays) override
1348 mImpl->DeleteVertexArrays(n, arrays);
1351 void GenVertexArrays(GLsizei n, GLuint* arrays) override
1353 mImpl->GenVertexArrays(n, arrays);
1356 GLboolean IsVertexArray(GLuint array) override
1358 return mImpl->IsVertexArray(array);
1361 void GetIntegeri_v(GLenum target, GLuint index, GLint* data) override
1363 mImpl->GetIntegeri_v(target, index, data);
1366 void BeginTransformFeedback(GLenum primitiveMode) override
1368 mImpl->BeginTransformFeedback(primitiveMode);
1371 void EndTransformFeedback(void) override
1373 mImpl->EndTransformFeedback();
1376 void BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) override
1378 mImpl->BindBufferRange(target, index, buffer, offset, size);
1381 void BindBufferBase(GLenum target, GLuint index, GLuint buffer) override
1383 mImpl->BindBufferBase(target, index, buffer);
1386 void TransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const* varyings, GLenum bufferMode) override
1388 mImpl->TransformFeedbackVaryings(program, count, varyings, bufferMode);
1391 void GetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei* size, GLenum* type, GLchar* name) override
1393 mImpl->GetTransformFeedbackVarying(program, index, bufSize, length, size, type, name);
1396 void VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid* pointer) override
1398 mImpl->VertexAttribIPointer(index, size, type, stride, pointer);
1401 void GetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) override
1403 mImpl->GetVertexAttribIiv(index, pname, params);
1406 void GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) override
1408 mImpl->GetVertexAttribIuiv(index, pname, params);
1411 void VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w) override
1413 mImpl->VertexAttribI4i(index, x, y, z, w);
1416 void VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) override
1418 mImpl->VertexAttribI4ui(index, x, y, z, w);
1421 void VertexAttribI4iv(GLuint index, const GLint* v) override
1423 mImpl->VertexAttribI4iv(index, v);
1426 void VertexAttribI4uiv(GLuint index, const GLuint* v) override
1428 mImpl->VertexAttribI4uiv(index, v);
1431 void GetUniformuiv(GLuint program, GLint location, GLuint* params) override
1433 mImpl->GetUniformuiv(program, location, params);
1436 GLint GetFragDataLocation(GLuint program, const GLchar* name) override
1438 return mImpl->GetFragDataLocation(program, name);
1441 void Uniform1ui(GLint location, GLuint v0) override
1443 mImpl->Uniform1ui(location, v0);
1446 void Uniform2ui(GLint location, GLuint v0, GLuint v1) override
1448 mImpl->Uniform2ui(location, v0, v1);
1451 void Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) override
1453 mImpl->Uniform3ui(location, v0, v1, v2);
1456 void Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) override
1458 mImpl->Uniform4ui(location, v0, v1, v2, v3);
1461 void Uniform1uiv(GLint location, GLsizei count, const GLuint* value) override
1463 mImpl->Uniform1uiv(location, count, value);
1466 void Uniform2uiv(GLint location, GLsizei count, const GLuint* value) override
1468 mImpl->Uniform2uiv(location, count, value);
1471 void Uniform3uiv(GLint location, GLsizei count, const GLuint* value) override
1473 mImpl->Uniform3uiv(location, count, value);
1476 void Uniform4uiv(GLint location, GLsizei count, const GLuint* value) override
1478 mImpl->Uniform4uiv(location, count, value);
1481 void ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint* value) override
1483 mImpl->ClearBufferiv(buffer, drawbuffer, value);
1486 void ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint* value) override
1488 mImpl->ClearBufferuiv(buffer, drawbuffer, value);
1491 void ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat* value) override
1493 mImpl->ClearBufferfv(buffer, drawbuffer, value);
1496 void ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) override
1498 mImpl->ClearBufferfi(buffer, drawbuffer, depth, stencil);
1501 const GLubyte* GetStringi(GLenum name, GLuint index) override
1503 return mImpl->GetStringi(name, index);
1506 void CopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) override
1508 mImpl->CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
1511 void GetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const* uniformNames, GLuint* uniformIndices) override
1513 mImpl->GetUniformIndices(program, uniformCount, uniformNames, uniformIndices);
1516 void GetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params) override
1518 mImpl->GetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params);
1521 GLuint GetUniformBlockIndex(GLuint program, const GLchar* uniformBlockName) override
1523 return mImpl->GetUniformBlockIndex(program, uniformBlockName);
1526 void GetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params) override
1528 mImpl->GetActiveUniformBlockiv(program, uniformBlockIndex, pname, params);
1531 void GetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName) override
1533 mImpl->GetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName);
1536 void UniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding) override
1538 mImpl->UniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding);
1541 void DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount) override
1543 mImpl->DrawArraysInstanced(mode, first, count, instanceCount);
1546 void DrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices, GLsizei instanceCount) override
1548 mImpl->DrawElementsInstanced(mode, count, type, indices, instanceCount);
1551 GLsync FenceSync(GLenum condition, GLbitfield flags) override
1553 return mImpl->FenceSync(condition, flags);
1556 GLboolean IsSync(GLsync sync) override
1558 return mImpl->IsSync(sync);
1561 void DeleteSync(GLsync sync) override
1563 mImpl->DeleteSync(sync);
1566 GLenum ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) override
1568 return mImpl->ClientWaitSync(sync, flags, timeout);
1571 void WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) override
1573 mImpl->WaitSync(sync, flags, timeout);
1576 void GetInteger64v(GLenum pname, GLint64* params) override
1578 mImpl->GetInteger64v(pname, params);
1581 void GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint* values) override
1583 mImpl->GetSynciv(sync, pname, bufSize, length, values);
1586 void GetInteger64i_v(GLenum target, GLuint index, GLint64* data) override
1588 mImpl->GetInteger64i_v(target, index, data);
1591 void GetBufferParameteri64v(GLenum target, GLenum pname, GLint64* params) override
1593 mImpl->GetBufferParameteri64v(target, pname, params);
1596 void GenSamplers(GLsizei count, GLuint* samplers) override
1598 mImpl->GenSamplers(count, samplers);
1601 void DeleteSamplers(GLsizei count, const GLuint* samplers) override
1603 mImpl->DeleteSamplers(count, samplers);
1606 GLboolean IsSampler(GLuint sampler) override
1608 return mImpl->IsSampler(sampler);
1611 void BindSampler(GLuint unit, GLuint sampler) override
1613 mImpl->BindSampler(unit, sampler);
1616 void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) override
1618 mImpl->SamplerParameteri(sampler, pname, param);
1621 void SamplerParameteriv(GLuint sampler, GLenum pname, const GLint* param) override
1623 mImpl->SamplerParameteriv(sampler, pname, param);
1626 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) override
1628 mImpl->SamplerParameterf(sampler, pname, param);
1631 void SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat* param) override
1633 mImpl->SamplerParameterfv(sampler, pname, param);
1636 void GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params) override
1638 mImpl->GetSamplerParameteriv(sampler, pname, params);
1641 void GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params) override
1643 mImpl->GetSamplerParameterfv(sampler, pname, params);
1646 void VertexAttribDivisor(GLuint index, GLuint divisor) override
1648 mImpl->VertexAttribDivisor(index, divisor);
1651 void BindTransformFeedback(GLenum target, GLuint id) override
1653 mImpl->BindTransformFeedback(target, id);
1656 void DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) override
1658 mImpl->DeleteTransformFeedbacks(n, ids);
1661 void GenTransformFeedbacks(GLsizei n, GLuint* ids) override
1663 mImpl->GenTransformFeedbacks(n, ids);
1666 GLboolean IsTransformFeedback(GLuint id) override
1668 return mImpl->IsTransformFeedback(id);
1671 void PauseTransformFeedback(void) override
1673 mImpl->PauseTransformFeedback();
1676 void ResumeTransformFeedback(void) override
1678 mImpl->ResumeTransformFeedback();
1681 void GetProgramBinary(GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, GLvoid* binary) override
1683 mImpl->GetProgramBinary(program, bufSize, length, binaryFormat, binary);
1686 void ProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid* binary, GLsizei length) override
1688 mImpl->ProgramBinary(program, binaryFormat, binary, length);
1691 void ProgramParameteri(GLuint program, GLenum pname, GLint value) override
1693 mImpl->ProgramParameteri(program, pname, value);
1696 void InvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments) override
1698 mImpl->InvalidateFramebuffer(target, numAttachments, attachments);
1701 void InvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments, GLint x, GLint y, GLsizei width, GLsizei height) override
1703 mImpl->InvalidateSubFramebuffer(target, numAttachments, attachments, x, y, width, height);
1706 void TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) override
1708 mImpl->TexStorage2D(target, levels, internalformat, width, height);
1711 void TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) override
1713 mImpl->TexStorage3D(target, levels, internalformat, width, height, depth);
1716 void GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint* params) override
1718 mImpl->GetInternalformativ(target, internalformat, pname, bufSize, params);
1721 void BlendBarrier(void)
1723 if(mGlExtensionSupportedCacheList.GetSupported(GlExtensionCache::GlExtensionCheckerType::BLEND_EQUATION_ADVANCED))
1725 mImpl->BlendBarrier();
1730 std::unique_ptr<GlesAbstraction> mImpl;
1732 GlExtensionCache::GlExtensionSupportedCacheList mGlExtensionSupportedCacheList;
1734 ConditionalWait mContextCreatedWaitCondition;
1735 GLint mMaxTextureSize;
1736 GLint mMaxTextureSamples;
1737 std::string mShaderVersionPrefix;
1738 std::string mVertexShaderPrefix;
1739 std::string mFragmentShaderPrefix;
1740 int32_t mGlesVersion;
1741 int32_t mShadingLanguageVersion;
1742 uint32_t mLogThreshold{0};
1743 bool mShadingLanguageVersionCached;
1744 bool mIsSurfacelessContextSupported;
1745 bool mIsContextCreated;
1746 bool mLogEnabled{false};
1749 } // namespace Adaptor
1751 } // namespace Internal
1755 #endif // DALI_INTERNAL_GL_IMPLEMENTATION_H