diff options
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) { |