If you are interested in theory about this example, you may read more at Nvidia Developer web site.
Whitepaper by Tianyun Ni and Ignacio Castanis is here.
This example works on directx9 (tested with nvidia GForce 8 product range GPU).
More about DirectX11 use of tesselation in this Nvidia presentation: