Questions tagged [opengl-extensions]

OpenGL extensions are a means for OpenGL implementations to provide new or expanded functionality that the core of OpenGL does not provide.

Reference:

Example Questions:

27 questions
5
votes
1 answer

glXGetProcAddress returns non-null for any procName starting with "gl"

I was very surprised when I discovered that the following code, and a lot of its variations, produce a non-null memory address. The variations that I tried include: Calling glXGetProcAddressARB instead of glXGetProcAddress. Having an active GL…
damix911
  • 4,165
  • 1
  • 29
  • 44
2
votes
1 answer

GLSL extension not available when it should be

I'm doing GPU computing on a Nvidia GeForce GTX 1050 in an ASUS RoG fx553 laptop, and for some reason, although the official Nvidia website lists this GPU as compatible with thread intrinsics instructions (GL_NV_shader_thread_group and the like),…
Matrefeytontias
  • 592
  • 1
  • 4
  • 13
2
votes
1 answer

PyOpenGL glReadPixels causes ctypes Argument error after final POINTER creation

I'm having a strange issue with pyopengl and its imports, below is a small test program cut out of a much larger one, but it is enough to show the problem. You need PyOpenGL installed, and if you run it as it is it shows a blank window, and if you…
2
votes
1 answer

How to enable OpenGL extension GL_EXT_shader_framebuffer_fetch on Android?

I'm developing an Android app with OpenGL ES 2.0 and I'd like to use the GL_EXT_shader_framebuffer_fetch extension. From what I understand, I need to enable it first with the #extension directive at the top of my fragment shader, and then I can use…
GuiTeK
  • 1,561
  • 5
  • 20
  • 39
2
votes
2 answers

wglext - extension not installed in OpenGL context

I am trying to disable vsync in OpenGl with WGL_EXT_swap_control using wglSwapIntervalEXT(int interval). I am trying to include the wglext header but after much searching it seems it is not installed on my pc (using opengl extension viewer to find…
Zecbmo
  • 71
  • 1
  • 8
2
votes
2 answers

How to utilize GL_ARB_stencil_texturing

From what I've read, to sample the stencil texture in the shader I need to set the GL_DEPTH_STENCIL_TEXTURE_MODE, so I did this: glTexParameteri(GL_TEXTURE_2D, GL_DEPTH_STENCIL_TEXTURE_MODE, GL_STENCIL_COMPONENTS); but I get an invalid enum... Why…
2
votes
0 answers

Rendering Multiline Text with NVPath Extension and Pango

I'm using Pango to layout my text and NV Path to render glyphs. Having difficulty in finding correct methods for getting per glyph positions. As you can see at the moment I'm calculating this values according to line and glyph indexes. But Pango has…
2
votes
1 answer

GL_ARB_sparse_texture not supported

I have this code which check if GL_ARB_sparse_texture is supported: GLint ExtensionCount = 0; glGetIntegerv(GL_NUM_EXTENSIONS, &ExtensionCount); for (GLint i = 0; i < ExtensionCount; ++i) if (std::string((char…
Jozef Culen
  • 344
  • 1
  • 2
  • 10
1
vote
1 answer

vkEnumerateInstanceExtensionProperties : What is the meaning of the pLayerName parameter?

I am trying to know if the PC running my soft has a specific GPU extension. To achieve this I use this function vkEnumerateInstanceExtensionProperties, but I don't understand the first parameter. If I call this function with NULL for the pLayerName…
cclst
  • 11
  • 4
1
vote
1 answer

How do I use GL_MAP_PERSISTENT_BIT in OpenGL ES 3.1 on Android?

I recently switched from using glBufferData to glMapBufferRange which gives me direct access to GPU memory rather than copying the data from CPU to GPU every frame. This works just fine and in OpenGL ES 3.0 I do the following per frame: Get a…
user1300214
1
vote
1 answer

Enabling fast Z clear in OpenGL

I find myself needing to clear the depth buffer many times per frame for the purpose of layered rendering. In the early 2000s, clearing Z was actually pretty costly with the limited bandwidth in the day. So AMD came up with techniques like HyperZ…
Bram
  • 7,440
  • 3
  • 52
  • 94
1
vote
2 answers

How do I get anisotropic filtering extensions to work?

In my (C++/OpenGL) program, I am loading a set of textures and setting the texture parameters as follows: //TEXTURES glGenTextures(1, &texture1); glBindTexture(GL_TEXTURE_2D, texture1); // set the texture wrapping…
Nuwanda
  • 123
  • 1
  • 6
1
vote
1 answer

What is the syntax for 'pixel_interlock_ordered' in GLSL?

I'm trying out the ARB_fragment_shader_interlock extension in OpenGL 4.5 and am failing to get the shader to compile when trying to use pixel_interlock_ordered. #version 430 #extension GL_ARB_shading_language_420pack : require #extension…
1
vote
1 answer

GLAD, extensions not being loaded

My application sent me this message when I tried to run a GLSL3.3 shader #version 330 layout(location = 0) in vec2 position; layout(location = 1) uniform float TimeUniform = 0.0f; out float TimeUniformFrag; void main() { gl_Position =…
Whiteclaws
  • 902
  • 10
  • 31
1
vote
2 answers

How to use extension like glGenBuffersARB in Qt5?

I am trying desperately to understand the architecture of OpenGL support in Qt5. My current problem is this: I have some existing OpenGL code (desktop, not OpenGL ES) that uses some OpenGL extensions, including glGenBuffersARB. Outside Qt5 getting…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
1
2