Use raw pointer for texture data
Use tex3D() taking texture wrapper as argument
Make use of template argument deduction
Less indirection