aboutsummaryrefslogtreecommitdiff
path: root/source/Shader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Shader.hpp')
-rw-r--r--source/Shader.hpp13
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);