Adding support for 3D textures

Change-Id: I0cf04e2eb48bd21717eb0cd553c5374c49651672