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…
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),…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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 =…
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…