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