DXShaderTexturesSet
DXShaderTexturesSet
设置着色器结构。
bool DXShaderTexturesSet(
int shader, // 着色器句柄
const int& textures[] // 结构句柄数组
);参数
- shader
[in] 在DXShaderCreate()中创建的着色器句柄。
- textures[]
[in] 使用DXTextureCreate()创建的结构句柄数组。
返回值
如果执行成功,返回true,否则 - false。若要接收错误代码,应该调用GetLastError()函数。
注意
结构数组的大小应该等于着色器代码中声明的Texture2D对象的数量。