diff options
author | dan sinclair <dj2@everburning.com> | 2019-02-13 10:29:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 10:29:18 -0500 |
commit | ee667acc11775ca0835949bdc4f33b5567fbb555 (patch) | |
tree | 9b6ed10b93e678f790cca22f609b03cd58b2febe /src/shader_compiler.h | |
parent | a64615b73c30195f4e6827c0843320328a9243a2 (diff) | |
download | amber-ee667acc11775ca0835949bdc4f33b5567fbb555.tar.gz |
Execute from pipeline, not script. (#286)
This CL changes the executor to read information from the pipeline
instead of using the script object.
Diffstat (limited to 'src/shader_compiler.h')
-rw-r--r-- | src/shader_compiler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_compiler.h b/src/shader_compiler.h index 2636bfc..6b89a74 100644 --- a/src/shader_compiler.h +++ b/src/shader_compiler.h @@ -32,12 +32,12 @@ class ShaderCompiler { ~ShaderCompiler(); std::pair<Result, std::vector<uint32_t>> Compile( - Shader* shader, + const Shader* shader, const ShaderMap& shader_map) const; private: Result ParseHex(const std::string& data, std::vector<uint32_t>* result) const; - Result CompileGlsl(Shader* shader, std::vector<uint32_t>* result) const; + Result CompileGlsl(const Shader* shader, std::vector<uint32_t>* result) const; std::string spv_env_; }; |