Struct shader_variant

Struct Documentation

struct legion::rendering::shader_variant

Public Functions

std::vector<std::tuple<std::string, GLint, GLenum>> get_uniform_info()

Public Members

GLint programId
std::unordered_map<id_type, std::unique_ptr<shader_parameter_base>> uniforms
std::unordered_map<id_type, std::unique_ptr<attribute>> attributes
std::unordered_map<GLint, id_type> idOfLocation
std::string name
std::string path
id_type nameHash
shader_state state

Data-structure to hold mapping of context functions and parameters.