Microsoft Direct3D - Pipeline

Pipeline

The Microsoft Direct3D 11 API defines a process to convert a group of vertices, textures, buffers, and state into an image on the screen. This process is described as a rendering pipeline with several distinct stages. The different stages of the Direct3D 11 pipeline are:

  1. Input Assembler: Reads in vertex data from an application supplied vertex buffer and feeds them down the pipeline.
  2. Vertex Shader: Performs operations on a single vertex at a time, such as transformations, skinning, or lighting.
  3. Hull Shader: Performs operations on sets of patch control points, and generates additional data known as patch constants.
  4. Tesselation stage: Subdivides geometry to create higher-order representations of the hull.
  5. Domain Shader: Performs operations on vertices output by the tessellation stage, in much the same way as a vertex shader.
  6. Geometry Shader: Processes entire primitives such as triangles, points, or lines. Given a primitive, this stage discards it, or generates one or more new primitives.
  7. Stream Output: Can write out the previous stage's results to memory. This is useful to recirculate data back into the pipeline.
  8. Rasterizer: Converts primitives into pixels, feeding these pixels into the pixel shader. The Rasterizer may also perform other tasks such as clipping what is not visible, or interpolating vertex data into per-pixel data.
  9. Pixel Shader: Determines the final pixel colour to be written to the render target and can also calculate a depth value to be written to the depth buffer.
  10. Output Merger: Merges various types of output data (pixel shader values, alpha blending, depth/stencil...) to build the final result.

The pipeline stages illustrated with a round box are fully programmable. The application provides a shader program that describes the exact operations to be completed for that stage. Many stages are optional and can be disabled altogether.

Read more about this topic:  Microsoft Direct3D

Famous quotes containing the word pipeline:

    Even in the pink crib
    the somehow deficient,
    the somehow maimed,
    are thought to have
    a special pipeline to the mystical....
    Anne Sexton (1928–1974)