Initialize vertex attribute and 2d texture caches