GLES3.0中文API--glGetFragDataLocation

名称

glGetFragDataLocation — 查询颜色数字与用户定义的可变变量的绑定

C 规范

GLint glGetFragDataLocation( GLuint program, const char * name);

参数

program
包含变量的程序名称,变量绑定到查询

name
用户定义的变型变量的名称,该变量绑定到查询

描述

glGetFragDataLocation检索程序程序的用户定义的变量名称的分配的色号绑定。 程序必须先前已链接。 名称必须是一个以空值结尾的字符串。 如果name不是程序中活动的用户定义的可变片段着色器变量的名称,则将返回-1。

注意

在OpenGL ES着色语言3.00版中,必须将输出变量显式绑定到着色器文本中的片段颜色。 该查询仅返回该绑定信息。

错误

如果program不是程序对象的名称,则生成GL_INVALID_OPERATION。

API 支持版本

函数名 2.0 3.0 3.1 3.2
glGetFragDataLocation -

另见

glCreateProgram,

版权

https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glGetFragDataLocation.xhtml
Copyright © 2010-2015 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/.

发布了215 篇原创文章 · 获赞 0 · 访问量 887

猜你喜欢

转载自blog.csdn.net/MSK1111/article/details/103225848
今日推荐