Ready for refactoring for RenderPass and its subclasses
update