Inviwo 0.9.12-pre
Inviwo documentation
|
Encapsulate a GLenum shader type, and related information. More...
#include <shadertype.h>
Public Member Functions | |
constexpr | ShaderType (GLenum type) |
operator GLenum () const | |
operator bool () const | |
std::string | extension () const |
std::string | name () const |
Static Public Member Functions | |
static std::string | extension (const ShaderType &type) |
static ShaderType | typeFromExtension (std::string_view ext) |
static ShaderType | typeFromString (std::string_view str) |
static ShaderType | typeFromFile (const std::filesystem::path &ext) |
Static Public Attributes | |
static const ShaderType | Vertex |
static const ShaderType | Geometry |
static const ShaderType | Fragment |
static const ShaderType | TessellationControl |
static const ShaderType | TessellationEvaluation |
static const ShaderType | Compute |
Friends | |
bool | operator== (const ShaderType &lhs, const ShaderType &rhs) |
Encapsulate a GLenum shader type, and related information.