Make ShaderStage an enum class
This commit is contained in:
committed by
Mathias Agopian
parent
ba8abb9031
commit
441708ea12
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user