[Render] Updated render pipeline; refactored some code; fixed vertex and index buffer wrappers