glActiveShaderProgram — アクティブプログラムオブジェクトをプログラムパイプライン オブジェクトへ設定します
void glActiveShaderProgram(
|
GLuint pipeline, |
GLuint program); |
pipeline
アクティブプログラムオブジェクトを設定するプログラムパイプラインオブジェクトを指定します。
program
アクティブプログラムパイプラインオブジェクト pipeline として設定するプログラムオブジェクトを指定します。
glActiveShaderProgram は、programにリンクされたプログラムを、プログラムパイプラインオブジェクト pipeline のアクティブプログラムとして設定します。
アクティブなプログラムパイプラインオブジェクト内のアクティブなプログラムは、glUniform の呼び出しのターゲットです。
ただし、glUseProgram の呼び出しによってプログラムが現在実行されていない場合を除きます。
GL_INVALID_OPERATION is generated if pipeline is not
a name previously returned from a call to glGenProgramPipelines
or if such a name has been deleted by a call to
glDeleteProgramPipelines.
GL_INVALID_OPERATION is generated if program refers
to a program object that has not been successfully linked.
| OpenGL Version | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 |
glActiveShaderProgram
|
- | - | - | - | - | - | - | ✔ | ✔ | ✔ | ✔ | ✔ |
glGenProgramPipelines, glDeleteProgramPipelines, glIsProgramPipeline, glUseProgram, glUniform
Copyright © 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.