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.)

  1. To get the names of the shaders associated with the given program object.

  2. To get the type of shader (top, geometry, piece).

  3. On each shredder name to find out how long the source is.

  4. 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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -