diff options
author | hnOsmium0001 <[email protected]> | 2022-04-13 22:40:41 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-13 22:40:41 -0700 |
commit | 989f90ebe2c37e8a517691a35d7e0d827fbe7006 (patch) | |
tree | a65b282b91a2e50db0e3a7dab0e6aa0830463c2d /source/Shader.hpp | |
parent | 67affc75a4824dfd8675cc5455d9ee71b1583c1c (diff) |
Remove uniform block support
Diffstat (limited to 'source/Shader.hpp')
-rw-r--r-- | source/Shader.hpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/Shader.hpp b/source/Shader.hpp index 8af5217..cda5531 100644 --- a/source/Shader.hpp +++ b/source/Shader.hpp @@ -17,7 +17,6 @@ struct ShaderVariable { enum Kind { KD_Math, KD_Sampler, - KD_UniformBlock, }; Kind kind; @@ -49,16 +48,6 @@ struct ShaderSamplerVariable : public ShaderVariable { : ShaderVariable(KD_Sampler) {} }; -struct ShaderUniformBlockVariable : public ShaderVariable { - std::string name; - /// Possible values: KD_Math - std::vector<std::unique_ptr<ShaderVariable>> items; - GLuint index; - - ShaderUniformBlockVariable() - : ShaderVariable(KD_UniformBlock) {} -}; - struct ShaderInfo { enum ThingKind { TKD_Input, @@ -80,9 +69,7 @@ struct ShaderInfo { absl::flat_hash_map<std::string, ThingId> things; std::vector<InputOutputThing> inputs; std::vector<InputOutputThing> outputs; - /// Possible values: KD_Math, KD_Sampler std::vector<std::unique_ptr<ShaderVariable>> uniforms; - std::vector<ShaderUniformBlockVariable> uniformBlocks; bool SaveToFile(const std::filesystem::path& filePath) const; bool LoadFromFile(const std::filesystem::path& filePath); |