|
|
发表于 2008-10-13 13:14:00
|
显示全部楼层
Re:用HLSL和不用有什么区别
转SDK文档
HLSL
HLSL is the High Level Shading Language for DirectX. Using HLSL, you can create C like programmable shaders for the Direct3D pipeline.
HLSL was created starting with DirectX 8 to set up the programmable 3D pipeline. In DirectX 8, the pipeline was programmed with a combination of assembly instructions, HLSL instructions and fixed-function statements. With the introduction of the Direct3D 10 API, the pipeline is now virtually 100% programmable using only HLSL; in fact, assembly is no longer used to generate shader code with Direct3D 10.
搞清楚什么是HLSL就好办了,简单来说就是用HLSL能有更高的自由度,即不像固定管线那样只能通过设置各种渲染状态来达到一些显示效果(这些效果有限且固定),使用HLSL可就看人的能力了。
(我是不会用HLSL的
|
|