diff options
author | rtk0c <[email protected]> | 2024-04-27 10:06:05 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2025-08-16 11:34:45 -0700 |
commit | c1b01f66de039a34914387abe21ac52e7e00347a (patch) | |
tree | ef5d9d370a5c1956a27f5da06b839133913169e9 /src/brussel.engine/Shader.hpp | |
parent | 9b2387dfe702bbadbdfde03fad8ba20daec127f8 (diff) |
Commit misc work from a while ago
Diffstat (limited to 'src/brussel.engine/Shader.hpp')
-rw-r--r-- | src/brussel.engine/Shader.hpp | 6 |
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) { |