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