在GLSL文档中,术语genType
经常用作参数类型。例如,函数dot
的文档如下所示:
float dot(genType x,
genType y);
double dot(genDType x,
genDType y);
术语genType
是什么意思?它的缩写是什么?除了OpenGL,它还在其他地方使用吗?
发布于 2014-05-23 16:30:50
它是多种类型的通用性。从specification section 8
浮点型当内置函数在下面指定时,其中输入参数(和相应的输出)可以是
、vec2、vec3或vec4,则使用genType作为参数。其中输入参数(和相应的输出)可以是int、ivec2、ivec3或ivec4,genIType用作参数。
作为参考,所有的“泛型”类型:
浮点数矩阵: integers
https://stackoverflow.com/questions/23824374
复制相似问题