How do you unit test OpenGL shaders written in GLSL?

I am new to OpenGL and GLSL. I would like to use TDD shaders, but I did not find anything in this thread except glsl-unit, which seems to be specific to WebGL.

Is there a "standard" way of modular test shaders? What are the best practices in this area? Are there unit tests for GLSL?

If this helps, I am targeting OpenGL ES 2.0 for iOS devices.

+6
source share
1 answer

There was some discussion of this in the WebGL Dev group, with code posted to Google Code. Here is the link:

https://groups.google.com/d/topic/webgl-dev-list/sKkl9FmcnPw/discussion

+1
source

Source: https://habr.com/ru/post/907666/


All Articles