Direct3D 10 & Direct3D 11 Pipeline Stages

前端之家收集整理的这篇文章主要介绍了Direct3D 10 & Direct3D 11 Pipeline Stages前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Pipeline Stages(DX11)

The Direct3D11 programmable pipeline is designed for generating graphics for realtime gaming applications. This section describes the Direct3D11 programmable pipeline. The following diagram shows the data flow from input to output through each of the programmable stages.

The graphics pipeline for Microsoft Direct3D11 supports the same stages as theDirect3D 10 graphics pipeline,with additional stages to support advanced features.

You can use the Direct3D11API to configure all of the stages. Stages that feature common shader cores (the rounded rectangular blocks) are programmable by using theHLSLprogramming language. As you will see,this makes the pipeline extremely flexible and adaptable. The following list specifies the purpose of each of the stages.

  • Input-Assembler Stage- The input-assembler stage supplies data (triangles,lines and points) to the pipeline.
  • Vertex-Shader Stage- The vertex-shader stage processes vertices,typically performing operations such as transformations,skinning,and lighting. A vertex shader always takes a single input vertex and produces a single output vertex.
  • Geometry-Shader Stage- The geometry-shader stage processes entire primitives. Its input is a full primitive (which is three vertices for a triangle,two vertices for a line,or a single vertex for a point). In addition,each primitive can also include the vertex data for any edge-adjacent primitives. This could include at most an additional three vertices for a triangle or an additional two vertices for a line. The geometry shader also supports limited geometry amplification and de-amplification. Given an input primitive,the geometry shader can discard the primitive,or emit one or more new primitives.
  • Stream-Output Stage- The stream-output stage streams primitive data from the pipeline to memory on its way to the rasterizer. Data can be streamed out and/or passed into the rasterizer. Data streamed out to memory can be recirculated back into the pipeline as input data or read-back from the cpu.
  • Rasterizer Stage- The rasterizer clips primitives,prepares primitives for the pixel shader,and determines how to invoke pixel shaders.
  • Pixel-Shader Stage- The pixel-shader stage receives interpolated data for a primitive and generates per-pixel data such as color.
  • Output-Merger Stage- The output-merger stage combines varIoUs types of output data (pixel shader values,depth and stencil information) with the contents of the render target and depth/stencil buffers to generate the final pipeline result.
  • Hull-shader,tessellator,and domain-shader stages,which comprise thetessellation stages- The tessellation stages convert higher-order surfaces to triangles for rendering within the Direct3D11 pipeline.

The Direct3D11 programmable pipeline is also designed for providing high-speed computing tasks. Acompute shaderexpands Direct3D11 beyond graphics to support general purpose GPU computing.

Related topics

Programming Guide for Direct3D 11




Pipeline Stages(DX10)


The Direct3D 10 programmable pipeline is designed for generating graphics for realtime gaming applications. The following diagram shows the data flow from input to output through each of the programmable stages.

All of the stages can be configured using the API. Stages featuring common shader cores (the rounded rectangular blocks) are programmable using the HLSL programming language. As you will see,this makes the pipeline extremely flexible and adaptable. The purpose of each of the stages is listed below.

  • Input-Assembler Stage- The input-assembler stage is responsible for supplying data (triangles,each primitive can also include the vertex data for any edge-adjacent primitives. This could include at most an additional three vertices for a triangle or an additional two vertices for a line. The Geometry Shader also supports limited geometry amplification and de-amplification. Given an input primitive,the Geometry Shader can discard the primitive,143)" rel="nofollow">Stream-Output Stage- The stream-output stage is designed for streaming primitive data from the pipeline to memory on its way to the rasterizer. Data can be streamed out and/or passed into the rasterizer. Data streamed out to memory can be recirculated back into the pipeline as input data or read-back from the cpu.
  • Rasterizer Stage- The rasterizer is responsible for clipping primitives,preparing primitives for the pixel shader and determining how to invoke pixel shaders.
  • Output-Merger Stage- The output-merger stage is responsible for combining varIoUs types of output data (pixel shader values,depth and stencil information) with the contents of the render target and depth/stencil buffers to generate the final pipeline result.

Related topics

Programming Guide for Direct3D 10

猜你在找的设计模式相关文章