@@ -107,6 +107,7 @@ bool SpvToolsDisassembler = false;
107
107
bool SpvToolsValidate = false ;
108
108
bool NaNClamp = false ;
109
109
bool stripDebugInfo = false ;
110
+ bool beQuiet = false ;
110
111
111
112
//
112
113
// Return codes from main/exit().
@@ -661,6 +662,8 @@ void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItem
661
662
variableName = argv[1 ];
662
663
bumpArg ();
663
664
break ;
665
+ } else if (lowerword == " quiet" ) {
666
+ beQuiet = true ;
664
667
} else if (lowerword == " version" ) {
665
668
Options |= EOptionDumpVersions;
666
669
} else if (lowerword == " help" ) {
@@ -1108,7 +1111,8 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
1108
1111
1109
1112
if (! (Options & EOptionSuppressInfolog) &&
1110
1113
! (Options & EOptionMemoryLeakMode)) {
1111
- PutsIfNonEmpty (compUnit.fileName [0 ].c_str ());
1114
+ if (!beQuiet)
1115
+ PutsIfNonEmpty (compUnit.fileName [0 ].c_str ());
1112
1116
PutsIfNonEmpty (shader->getInfoLog ());
1113
1117
PutsIfNonEmpty (shader->getInfoDebugLog ());
1114
1118
}
@@ -1615,6 +1619,8 @@ void usage()
1615
1619
" --keep-uncalled | --ku don't eliminate uncalled functions\n "
1616
1620
" --nan-clamp favor non-NaN operand in min, max, and clamp\n "
1617
1621
" --no-storage-format | --nsf use Unknown image format\n "
1622
+ " --quiet do not print anything to stdout, unless\n "
1623
+ " requested by another option\n "
1618
1624
" --reflect-strict-array-suffix use strict array suffix rules when\n "
1619
1625
" reflecting\n "
1620
1626
" --reflect-basic-array-suffix arrays of basic types will have trailing [0]\n "
0 commit comments