码迷,mamicode.com
首页 > 其他好文 > 详细

dx11 入门 Tutorial 03: 什么是shader DirectXSampleBrowser(June 2010)

时间:2015-01-16 23:49:39      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:

对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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!