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 <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)
 

Detailed Description

Encapsulate a GLenum shader type, and related information.


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