不同的显卡有不同的处理能力,比如有的显卡就支持Fragment Program(片段编程),而有的就不支持。那为了更好的利用显卡的处理性能,所以在一个大的Shader中就包含了很多“小”Shader,被称之为 SubShaders 。
基于24个网页-相关网页
这篇文章中描述的任何命令都不会用来操作逐像素光照,你可以通过自己定义的顶点和片段编程来实现这个效果。
For these you don't use any of the commands described here, instead you define your own vertex and fragment programs where you do all lighting, texturing and anything else yourself.
处理XML的最简单的选择(至少就学习新的编程技术而言),就是用与处理服务器返回的其他文本片段相同的方法来处理它。
The easiest option to handle XML, at least in terms of learning new programming techniques, is to treat it like any other piece of text returned from a server.
图8所示的代码片段说明了如何实现“一次准备,多次运行”编程技术。
The code snippet in Figure 8 illustrates how to implement the "prepare once, execute many" programming technique.
应用推荐