Book Example Code in [Introduction to 3D Game Programming With DirectX11 by Frank Luna ]