Added -x option to save SPIR-V as 32-bit hexadecimal numbers to a text file.

This commit is contained in:
Johannes van Waveren 2016-05-27 12:55:53 -05:00
parent 5a7f0eff69
commit ecb0f3b75b
3 changed files with 46 additions and 8 deletions

View file

@ -44,6 +44,7 @@ namespace glslang {
void GetSpirvVersion(std::string&);
void GlslangToSpv(const glslang::TIntermediate& intermediate, std::vector<unsigned int>& spirv);
void GlslangToSpv(const glslang::TIntermediate& intermediate, std::vector<unsigned int>& spirv, spv::SpvBuildLogger* logger);
void OutputSpv(const std::vector<unsigned int>& spirv, const char* baseName);
void OutputSpvBin(const std::vector<unsigned int>& spirv, const char* baseName);
void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName);
}