Opengl4.5 中文手冊—U
索引
A B C D E F G
H I L M N
O P Q R S T
U V W
U
glUniform 2.0
設置uniform變量
存在多個版本,數組類型可使用count指定數組個數,矩陣版本可指定是否需要轉置
glUniformBlockBinding 3.1
綁定uniform塊
GLuint program,
GLuint uniformBlockIndex, uniform塊索引
GLuint uniformBlockBinding uniform緩沖區綁定索引
緩沖區通過glBindBufferBase(GL_UNIFORM_BUFFER, uniformBlockBinding)綁定
glUniformSubroutinesuiv 4.0
GLenum shadertype, :G L_VERTEX_SHADER, GL_TESS_CONTROL_SHADER, GL_TESS_EVALUATION_SHADER, GL_GEOMETRY_SHADER or GL_FRAGMENT_SHADER
GLsizei count,
const GLuint *indices
glUnmapBuffer 2.0
釋放緩沖區映射
GLenum target
glUseProgram 2.0
glUseProgramStages 4.1
將程序綁定到管線對象
GLuint pipeline,
GLbitfield stages, GL_VERTEX_SHADER_BIT, GL_TESS_CONTROL_SHADER_BIT, GL_TESS_EVALUATION_SHADER_BIT, GL_GEOMETRY_SHADER_BIT, GL_FRAGMENT_SHADER_BIT and GL_COMPUTE_SHADER_BIT. Additionally, the special value GL_ALL_SHADER_BITS
GLuint program
Opengl4.5 中文手冊—U