![]() It * is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete shader. It is permissible to * attach a shader object to a program object before source code has been loaded into the shader object or before the shader object has been compiled. * * All operations that can be performed on a shader object are valid whether or not the shader object is attached to a program object. This indicates that shader will be included in link operations that will * be performed on program. glAttachShader attaches the * shader object specified by shader to the program object specified by program. Shaders that are to be linked together in a program object must first be attached to that program object. Program objects provide * this mechanism. * * In order to create a complete shader program, there must be a way to specify the list of things that will be linked together. ** * Attaches a shader object to a program object.
0 Comments
Leave a Reply. |