/Engine/Source/Runtime/Engine/Public/MaterialCompiler.h
Get the shading models that were encountered when compiling a material's Shading Model attribute graph. This will represent the actually used Shading Models for a particular material given its static switches, feature levels and material quality for example. Will return all Shading Models in the material if this is called before that attribute has been compiled.
virtual [FMaterialShadingModelField](API\Runtime\Engine\Engine\FMaterialShadingModelField) GetCompiledShadingModels() const