aboutsummaryrefslogtreecommitdiff
path: root/src/brussel.engine/Shader.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2024-04-27 10:06:05 -0700
committerrtk0c <[email protected]>2024-04-27 10:06:05 -0700
commit7151b0e5bcabb0216e79e742ae13c4f429ec2011 (patch)
treeef5d9d370a5c1956a27f5da06b839133913169e9 /src/brussel.engine/Shader.hpp
parent611008e9a7f262ca5ef7c5c89a04705ed706f7a2 (diff)
Commit misc work from a while ago
Diffstat (limited to 'src/brussel.engine/Shader.hpp')
-rw-r--r--src/brussel.engine/Shader.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/brussel.engine/Shader.hpp b/src/brussel.engine/Shader.hpp
index cb980cd..14480cd 100644
--- a/src/brussel.engine/Shader.hpp
+++ b/src/brussel.engine/Shader.hpp
@@ -75,10 +75,12 @@ struct ShaderInfo {
std::vector<ShaderMathVariable> inputs;
std::vector<ShaderMathVariable> outputs;
std::vector<std::variant<ShaderMathVariable, ShaderSamplerVariable>> uniforms;
+ static constexpr int kKindMath = 0;
+ static constexpr int kKindSampler = 1;
// Find the first variable with the matching semantic
- GLuint FindInputLocation(Tags::VertexElementSemantic semantic);
- GLuint FindOutputLocation(Tags::VertexElementSemantic semantic);
+ GLuint FindInputLocation(Tags::VertexElementSemantic semantic) const;
+ GLuint FindOutputLocation(Tags::VertexElementSemantic semantic) const;
template <typename TJsonIo>
void json_io(TJsonIo& io) {