标签:缓冲 中文 and sha base use wiki count block
索引
设置uniform变量
存在多个版本,数组类型可使用count指定数组个数,矩阵版本可指定是否需要转置
绑定uniform块
GLuint program,
GLuint uniformBlockIndex, uniform块索引
GLuint uniformBlockBinding uniform缓冲区绑定索引
缓冲区通过glBindBufferBase(GL_UNIFORM_BUFFER, uniformBlockBinding)绑定
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
释放缓冲区映射
GLenum target
将程序绑定到管线对象
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
标签:缓冲 中文 and sha base use wiki count block
原文地址:http://www.cnblogs.com/wiki3d/p/7599183.html