Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::ShaderType Class Reference

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)
 

Detailed Description

Encapsulate a GLenum shader type, and related information.


The documentation for this class was generated from the following file: