Skip to content

Commit

Permalink
honor matc -t (print shader) options, even when compilation fails early
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflinger committed Apr 5, 2023
1 parent c264d26 commit 503e3ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/filamat/src/MaterialBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ bool MaterialBuilder::findProperties(backend::ShaderStage type,
mSemanticCodeGenParams.targetApi,
mSemanticCodeGenParams.targetLanguage,
mSemanticCodeGenParams.shaderModel)) {
if (mPrintShaders) {
slog.e << shaderCodeAllProperties << io::endl;
}
return false;
}
return true;
Expand Down

0 comments on commit 503e3ba

Please sign in to comment.