diff --git a/shaders.cc b/shaders.cc index 26980b7..414958c 100644 --- a/shaders.cc +++ b/shaders.cc @@ -13,6 +13,7 @@ const std::map< std::string , E_ShaderInput > InputTypes_( ([] { t.emplace( "lib" , E_ShaderInput::LIBRARY ); t.emplace( "vertex" , E_ShaderInput::VERTEX ); t.emplace( "fragment" , E_ShaderInput::FRAGMENT ); + t.emplace( "compute" , E_ShaderInput::COMPUTE ); return t; })()); diff --git a/shaders.hh b/shaders.hh index 14abf02..a09a0c4 100644 --- a/shaders.hh +++ b/shaders.hh @@ -32,7 +32,7 @@ enum class E_ShaderInput { LIBRARY , // Library (will only be loaded once) // "Main" shader source files - VERTEX , FRAGMENT , + VERTEX , FRAGMENT , COMPUTE }; // Preprocessing errors @@ -56,7 +56,7 @@ using P_ShaderInput = std::unique_ptr< T_ShaderInput >; // Type of shader enum class E_ShaderType { - VERTEX , FRAGMENT , + VERTEX , FRAGMENT , COMPUTE };