一.Cg基本数据类型 float 32位浮点数 half 16位浮点数 int 32位整型 fixed 12位定点数 bool 布尔数据 simpler* 纹理对象的句柄( the handle to a texture object ) ,分为 6 类:sampler, sampler1D, sampler2D, sampler3D, samplerCUBE, 和 samplerRECT string 字符类型(几乎不使用) 例如float4,bool4等 向量数据类型,向量长度不能超过4元…