SPV: Isolate SPIRV-tools glue to its own file.
This commit is contained in:
parent
cc14f2d329
commit
717c80a9de
10 changed files with 279 additions and 174 deletions
9
SPIRV/GlslangToSpv.h
Normal file → Executable file
9
SPIRV/GlslangToSpv.h
Normal file → Executable file
|
|
@ -38,6 +38,7 @@
|
|||
#pragma warning(disable : 4464) // relative include path contains '..'
|
||||
#endif
|
||||
|
||||
#include "SpvTools.h"
|
||||
#include "../glslang/Include/intermediate.h"
|
||||
|
||||
#include <string>
|
||||
|
|
@ -47,14 +48,6 @@
|
|||
|
||||
namespace glslang {
|
||||
|
||||
struct SpvOptions {
|
||||
SpvOptions() : generateDebugInfo(false), disableOptimizer(true),
|
||||
optimizeSize(false) { }
|
||||
bool generateDebugInfo;
|
||||
bool disableOptimizer;
|
||||
bool optimizeSize;
|
||||
};
|
||||
|
||||
void GetSpirvVersion(std::string&);
|
||||
int GetSpirvGeneratorVersion();
|
||||
void GlslangToSpv(const glslang::TIntermediate& intermediate, std::vector<unsigned int>& spirv,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue