Three buffers in d3d

Source: Internet
Author: User

In d3d, there are three buffer types for Windows: Color buffer, depth buffer, and stencel buffer.

 

  • In d3d, color buffer is also called the render target, which indicates the final target buffer. It is used to store the color value of each pixel in the rendering window, that is, the actual color image.
  • The depth buffer, also known as the Z buffer in d3d, is used to store data that determines the order before and after pixel.
  • In d3d, stencel buffer is used to regulate the operation scope of color buffer. The common stencel buffer is used in racing games. When the picture of a racing game is taken outside the cab, the main change picture is the outside view, and the driving room is not changed much. To save computing time, you can use the stencel buffer to pre-define the range of the driving room. When color buffer is colored, it will refer to the stencel buffer to only change the image outside the cab.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.