Direct3DPipeline

Direct3DPipelineGraphics pipeline processDirect3D 10 API定义了vertices, textures, buffers,以及state组群转换到屏幕上的流程

这样的流程被描述成rendering pipeline有着许多不同的stages. The different stages of the Direct3D 10 pipelineare:Input Assembler:从程序里读取vertex data并将程序提供的vertex buffer倒进pipeline.顶点着色引擎(Vertex Shader): Performs operations on a single vertex at a time,像是transformations, skinning,或lighting.几何着色器(Geometry Shader): Shader Model 4.0引进了几何着色器,使用Shader资源来处理点、线、面的几何坐标变换,一次最多处理六个点,快速地将模型类似的顶点结合起来进行运算

此一过程无需CPU参与

Stream Output:将Vertex Shader和Pixel Shader处理完成的数据输出给用户

Rasterizer: Converts primitives into pixels,再将像素(pixels)输出给pixel shader. The Rasterizer亦可运行其他工作,像是切割非视觉性的像素,or interpolating vertex data into per-pixel data.像素着色引擎(Pixel Shader):决定最后的像素颜色(pixel colour)to be written to the render target and can also calculate a depth value to be written to the depth buffer.Output Merger:接收来自于pixel shader的slice,进行传统的Stencil测试和Depth测试,整并各种不同的输出数据,用以创建最后之结果

以上内容由大学时代综合整理自互联网,实际情况请以官方资料为准。

相关