Sample code from "Introduction to 3D Game Programming with DirectX XX.XX" serials (http://www.d3dcoder.net/d3d9.htm).
Other books and references: Practical Rendering and Computation with Direct3D 11 () real-time rendering 3rd edition (http://www.realtimerendering.com/book.html) http://www.rastertek.com/index.html http://www.braynzarsoft.net/index.php?p=DX11Lessons http://www.cnblogs.com/clayman/