Opengl4.5 中文手册—U

索引

      B     C      D     E     F     G  

      I       L     M     N

      P     Q      R     S     T   

U       V     W     

U

glUniform 2.0

设置uniform变量

存在多个版本,数组类型可使用count指定数组个数,矩阵版本可指定是否需要转置: https://registry.khronos.org/OpenGL-Refpages/gl4/html/glUniform.xhtml

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

 

posted @ 2017-09-26 21:57  wiki3D  阅读(350)  评论(0编辑  收藏  举报