Encapsulate a GLenum shader type, and related information.
More...
#include <modules/opengl/shader/shadertype.h>
|
|
constexpr std::string_view | extension () const |
|
constexpr std::string_view | name () const |
|
| operator bool () const |
|
| operator GLenum () const |
|
constexpr | ShaderType (GLenum type) |
|
|
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 const ShaderType | Compute |
|
static const ShaderType | Fragment |
|
static const ShaderType | Geometry |
|
static const ShaderType | TessellationControl |
|
static const ShaderType | TessellationEvaluation |
|
static const ShaderType | Vertex |
|
|
bool | operator== (const ShaderType &lhs, const ShaderType &rhs) |
Encapsulate a GLenum shader type, and related information.
The documentation for this class was generated from the following file:
- modules/opengl/include/modules/opengl/shader/shadertype.h