Compute shader type added

This commit is contained in:
Emmanuel BENOîT 2017-10-04 10:06:45 +02:00
parent 8be3c508a3
commit 53fbdba979
2 changed files with 3 additions and 2 deletions

View file

@ -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;
})());

View file

@ -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
};