Add some Direct3D texture code.