This sample demonstrates how to use the DirectComposition API to apply backface visibility to a visual element. Backface visibility can be used to show and hide the back side of a DirectComposition visual element.

This sample also demonstrates a performance optimization of batching D2D BeginDraw/EndDraw calls.

Warning  This sample requires Microsoft Visual Studio Ultimate 2012 and doesn't compile in Microsoft Visual Studio Express 2012 for Windows 8.

Operating system requirements

Client
Windows 8.1
Server
Windows Server 2012 R2

Build the sample

  1. Start Microsoft Visual Studio and select File > Open > Project/Solution.
  2. Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio Solution (.sln) file.
  3. Press F7 or use Build > Build Solution to build the sample.

Run the sample

To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.