The functionality is already there, just need to set it up Implemented for Principled BSDF and Glass BSDF. Pull Request: https://projects.blender.org/blender/blender/pulls/163343