标签:
对shader的认知:
shader是什么?
In Direct3D 11, shaders reside in different stages of the graphics pipeline. They are short programs that, executed by the GPU, take certain input data, process that data, and then output the result to the next stage of the pipeline.
1.它被GPU执行
2.接收数据,处理数据,输出数据到下一阶段
比如:vertexShader:接收vertexBuffer数据(之间还有layout设置神马的),GPU在此处理vertex数据(各种Matrix Transform),输出裁剪后数据用于光栅化;
有哪几种类型的shader?
Direct3D 11 supports three basic types of shaders: vertex shader, geometry shader, and pixel shader.In Direct3D 11 there are also hull and domain shaders for tessellation and compute shaders for compute.
三种基本类型:vertex geometry pixel;geometry应该是光栅化阶段,进行数据插值;
还有棋盘类shader和compute类shader
dx11 入门 Tutorial 03: 什么是shader DirectXSampleBrowser(June 2010)
标签:
原文地址:http://www.cnblogs.com/dust-fly/p/4229951.html