赞
踩
1、uint CreateShader(enum type) : 创建空的shader object;
2、void ShaderSource(uint shader, sizeicount, const **string, const int *length):加载shader源码进shader object;可能多个字符串
3、void CompileShader(uint shader):编译shader object;
4、void DeleteShader( uint shader ):删除 shader object;
5、void ShaderBinary( sizei count, const uint *shaders,
enum binaryformat, const void *binary, sizei length ): 加载预编译过的shader 二进制串;
6、uint CreateProgram( void ):创建空的program object, programe object组织多个shader object,成为executable;
7、void AttachShader( uint program, uint shader ):关联shader object和program object;
8、void DetachShader( uint program, uint shader ):解除关联;
9、void LinkProgram( uint program ):program object准备执行,其关联的shader object必须编译正确且符合限制条件;
10、void UseProgram( uint program ):执行program object;
11、void ProgramParameteri( uint program, enum pname,
int value ): 设置program object的参数;
12、void DeleteProgram( uint program ):删除program object;
13、shader 变量的qualifier:
14、shader变量的精度:
15、shader内置变量:
16、shader内置常量:
17、shader内置函数:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。