add 2dtexture support