From 53fbdba9794e4a216c4bd6bc38d154c08d00498c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Wed, 4 Oct 2017 10:06:45 +0200 Subject: [PATCH] Compute shader type added --- shaders.cc | 1 + shaders.hh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 };