Add a function to flush shader data in Renderer