support mipmap and texture-1D,3D