Partager via


Multisampling in the Driver (Windows Embedded CE 6.0)

1/6/2010

Multisampling can help mitigate aliasing problems on devices with low resolution displays.

At an API level, the application creates a device by using a multisampling type from the D3DMMULTISAMPLE_TYPE enumeration. That is the only action necessary. Within the middleware, when the swap chain is created for the device, that multisampling type is attached to the front buffer, back buffers, and depth buffers as they are created.

The driver has two roles for multisampling:

  • It must ensure that adequate buffer space is allocated.
  • It must ensure that the downsample is performed after the frame is completed and ready to be presented on screen.

If the driver supports multisampling by doing a stretch blit between the back buffer and the front buffer, it should expose the D3DMPRASTERCAPS_STRETCHBLTMULTISAMPLE capability bit (see D3DMPRASTERCAPS Values).

See Also

Concepts

Rendering Pipeline in Direct3D Mobile Drivers