Add shader getter to IMaterial interface

This commit is contained in:
Wojciech Figat
2022-05-12 13:47:19 +02:00
parent 69b9c1b9ee
commit f7e48d9b23
14 changed files with 45 additions and 3 deletions

View File

@@ -29,6 +29,11 @@ const MaterialInfo& MaterialComplexityMaterialShader::WrapperShader::GetInfo() c
return Info;
}
GPUShader* MaterialComplexityMaterialShader::WrapperShader::GetShader() const
{
return MaterialAsset->GetShader();
}
bool MaterialComplexityMaterialShader::WrapperShader::IsReady() const
{
return MaterialAsset && MaterialAsset->IsReady();