Removed tabs and replaced with spaces. Changed layout for "else if"
This commit is contained in:
parent
aea3c890d3
commit
15017db971
@ -5259,10 +5259,10 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
|
||||
std::ofstream out;
|
||||
out.open(baseName, std::ios::binary | std::ios::out);
|
||||
out << "\t// " GLSLANG_REVISION " " GLSLANG_DATE << std::endl;
|
||||
if (varName != nullptr) {
|
||||
out << "\t #pragma once" << std::endl;
|
||||
out << "const uint32_t " << varName << "[] = {" << std::endl;
|
||||
}
|
||||
if (varName != nullptr) {
|
||||
out << "\t #pragma once" << std::endl;
|
||||
out << "const uint32_t " << varName << "[] = {" << std::endl;
|
||||
}
|
||||
const int WORDS_PER_LINE = 8;
|
||||
for (int i = 0; i < (int)spirv.size(); i += WORDS_PER_LINE) {
|
||||
out << "\t";
|
||||
@ -5275,9 +5275,9 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
|
||||
}
|
||||
out << std::endl;
|
||||
}
|
||||
if (varName != nullptr) {
|
||||
out << "};";
|
||||
}
|
||||
if (varName != nullptr) {
|
||||
out << "};";
|
||||
}
|
||||
out.close();
|
||||
}
|
||||
|
||||
|
@ -303,20 +303,18 @@ void ProcessArguments(int argc, char* argv[])
|
||||
} else if (lowerword == "no-storage-format" || // synonyms
|
||||
lowerword == "nsf") {
|
||||
Options |= EOptionNoStorageFormat;
|
||||
}
|
||||
else if (lowerword == "variable-name" || // synonyms
|
||||
lowerword == "vn") {
|
||||
Options |= EOptionOutputHexadecimal;
|
||||
variableName = argv[1];
|
||||
if (argc > 0) {
|
||||
argc--;
|
||||
argv++;
|
||||
}
|
||||
else
|
||||
Error("no <C-variable-name> provided for --variable-name");
|
||||
break;
|
||||
}
|
||||
else if (lowerword == "source-entrypoint" || // synonyms
|
||||
} else if (lowerword == "variable-name" || // synonyms
|
||||
lowerword == "vn") {
|
||||
Options |= EOptionOutputHexadecimal;
|
||||
variableName = argv[1];
|
||||
if (argc > 0) {
|
||||
argc--;
|
||||
argv++;
|
||||
} else
|
||||
Error("no <C-variable-name> provided for --variable-name");
|
||||
break;
|
||||
}
|
||||
else if (lowerword == "source-entrypoint" || // synonyms
|
||||
lowerword == "sep") {
|
||||
sourceEntryPointName = argv[1];
|
||||
if (argc > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user