Make ShaderStage an enum class

This commit is contained in:
Mathias Agopian
2022-09-12 15:54:07 -07:00
committed by Mathias Agopian
parent ba8abb9031
commit 441708ea12
11 changed files with 115 additions and 87 deletions
+3 -3
View File
@@ -232,10 +232,10 @@ bool GLSLPostProcessor::process(const std::string& inputShader, Config const& co
};
switch (config.shaderType) {
case VERTEX:
case ShaderType::VERTEX:
internalConfig.shLang = EShLangVertex;
break;
case FRAGMENT:
case ShaderType::FRAGMENT:
internalConfig.shLang = EShLangFragment;
break;
}
@@ -269,7 +269,7 @@ bool GLSLPostProcessor::process(const std::string& inputShader, Config const& co
}
// add texture lod bias
if (config.shaderType == backend::FRAGMENT &&
if (config.shaderType == backend::ShaderType::FRAGMENT &&
config.domain == MaterialDomain::SURFACE) {
GLSLTools::textureLodBias(tShader);
}