In order that the accelerator could know what data should be loaded in each input register, shader declaration is required.
为了让图像加速卡能够知道哪些输入寄存器应该载入哪些数据,就需要使用着色器声明。
The register variable declaration can only be appied to automatic variables, and to the formal parameters of a functions.
这个寄存器变量声明不仅仅可以用在自动变量上,也能用在函数的参数上。
应用推荐