Refactor buffer parameters to use Vec2i