SerializeInlineShaderMaps

Helper function to serialize inline shader maps for the given material resources.