Blackcomb  prealpha
Engine-ish
Classes | Variables
Shader.h File Reference

Contains the Shader class and some helpful shader-related utilities. More...

#include <string>
#include <unordered_map>
#include <vector>
#include <glad/glad.h>
Include dependency graph for Shader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  blackcomb::renderer::Shader
 Loads and stores shaders. More...
 

Variables

const std::unordered_map< GLuint, std::string > blackcomb::renderer::ShaderNames
 A mapping of OpenGL shader type constants to human-readable names. More...
 

Detailed Description

Contains the Shader class and some helpful shader-related utilities.

Variable Documentation

◆ ShaderNames

const std::unordered_map<GLuint, std::string> blackcomb::renderer::ShaderNames
Initial value:
= {
{GL_VERTEX_SHADER, "vertex shader"},
{GL_FRAGMENT_SHADER, "fragment shader"},
{GL_GEOMETRY_SHADER, "geometry shader"},
{GL_COMPUTE_SHADER, "compute shader"},
{GL_TESS_CONTROL_SHADER, "tesselation control shader"},
{GL_TESS_EVALUATION_SHADER, "tesselation evaluation shader"},
{0, "shader"}
}

A mapping of OpenGL shader type constants to human-readable names.

Key 0 is used for a default name in case the actual shader name is unknown.