glsl - OpenGL Getting Shader Attached to Program -
Is there a way to access the shader associated with a program? That is, given a program, I can do something like this:
vertexShader = getVertexShaderFromProgram (program); (I would like to log the shader compilation status within my program, which validates my program, but I only refer to the program, not the shader.)
-
To get the names of the shaders associated with the given program object.
-
To get the type of shader (top, geometry, piece).
-
On each shredder name to find out how long the source is.
-
To get the source string for each attached shader.
Edit : If you need all the shader names & amp; After step 2, you can stop.
Comments
Post a Comment