Move rendering API to RenderDevice file