GLSL-PROGRAM:
GPU-accelerated rendering > Shader objects

Next:GLSL-SHADER:


Vocabulary
gpu.shaders

Syntax
GLSL-PROGRAM: program-name shader shader ... [vertex-format vertex-format ...] [feedback-format: vertex-format] ;


Word description
Defines a new shader program named program-name. When the program is instantiated with <program-instance>, it will link together instances of all of the specified shaders to create the program instance. If any vertex-formats are specified, their attributes will be pre-assigned attribute indexes at link time, to ensure that their indexes remain constant if the program is refreshed with refresh-program. A transform feedback vertex format may optionally be specified with feedback-format:; if the program is used to collect transform feedback, the given vertex format will be used for the output.

Notes
Transform feedback requires OpenGL 3.0 or one of the GL_EXT_transform_feedback or GL_ARB_transform_feedback extensions.

See also
GLSL-SHADER-FILE:, GLSL-SHADER:

Definition