rename ShaderType to ShaderStage
This commit is contained in:
committed by
Mathias Agopian
parent
441708ea12
commit
3496f3a8ba
@@ -232,10 +232,10 @@ bool GLSLPostProcessor::process(const std::string& inputShader, Config const& co
|
||||
};
|
||||
|
||||
switch (config.shaderType) {
|
||||
case ShaderType::VERTEX:
|
||||
case ShaderStage::VERTEX:
|
||||
internalConfig.shLang = EShLangVertex;
|
||||
break;
|
||||
case ShaderType::FRAGMENT:
|
||||
case ShaderStage::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::ShaderType::FRAGMENT &&
|
||||
if (config.shaderType == backend::ShaderStage::FRAGMENT &&
|
||||
config.domain == MaterialDomain::SURFACE) {
|
||||
GLSLTools::textureLodBias(tShader);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user