-
LearnOpenGL
Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Hi everyone, currently, I am trying to do compute with OpenGL using fragment shader based on this tutorial: http://www.mathematik.tu-dortmund.de/~goeddeke/gpgpu/tutorial.html as my GPU does not support compute shader. My code logic is to draw a rectangle and transfer data from array X and array Y in the form of texture then attach the color buffer to framebuffer and read it back. However, the result I receive is very weird, and I don't know how to fix it.The shader header file is from this OpenGL tutorial: https://github.com/JoeyDeVries/LearnOpenGL/blob/master/includes/learnopengl/shader_m.h
You have several tools, this can be done by printing debug messages using extensions such as KHR_debug, or using specific tools which will inject themselves between your OpenGL calls and your driver such as apitrace or RenderDoc. I recommend running your program in RenderDoc regularly even if everything seems to work fine as it may help you catch some subtle bugs.
Related posts
-
Apitrace – trace and replay OpenGL, Direct3D, and DirectDraw APIs calls
-
Opengl invalid operation error on glBindTexture (opengl 3.3 core)
-
Total War: Shogun 2 native version by Feral Interactive crashes instantly, gives a weird error
-
Looking for help reporting a mesa bug with the game Indivisible
-
Left 4 Dead 2 has been updated to DXVK 2.0