#pragma once #include #include #include template struct gl_traits; template<> struct gl_traits { static constexpr GLenum type {GL_FLOAT}; static constexpr GLint size {1}; }; template struct gl_traits> : public gl_traits { static constexpr GLint size {S * gl_traits::size}; }; template struct gl_traits> : public gl_traits { static constexpr GLint size {L}; }; template struct gl_traits> : public gl_traits { static constexpr GLint size {C * R}; };