diff options
Diffstat (limited to 'src/shader_compiler.h')
-rw-r--r-- | src/shader_compiler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_compiler.h b/src/shader_compiler.h index f9566e5..bf5fc49 100644 --- a/src/shader_compiler.h +++ b/src/shader_compiler.h @@ -30,7 +30,7 @@ namespace amber { class ShaderCompiler { public: ShaderCompiler(); - explicit ShaderCompiler(const std::string& env); + ShaderCompiler(const std::string& env, bool disable_spirv_validation); ~ShaderCompiler(); /// Returns a result code and a compilation of the given shader. @@ -53,6 +53,7 @@ class ShaderCompiler { std::vector<uint32_t>* result) const; std::string spv_env_; + bool disable_spirv_validation_ = false; }; // Parses the SPIR-V environment string, and returns the corresponding |