All Classes Files Functions Variables Typedefs Pages
ShaderSource.hpp
Go to the documentation of this file.
1 #pragma once
2 
13 #include <string>
14 
15 namespace lumina {
16 
17 struct ShaderSource {
18  ShaderSource() = default;
19  ShaderSource(std::string code, std::string filename)
20  : code(code), filename(filename) {}
21 
22  std::string code;
23  std::string filename;
24 };
25 
33 ShaderSource loadShaderFromFile(std::string filename);
34 
35 } // namespace lumina
Definition: ShaderSource.hpp:17