sample texture rendering program in D3D