| 136 | }; |
| 137 | |
| 138 | class ShaderSource |
| 139 | { |
| 140 | public: |
| 141 | ShaderSource() = default; |
| 142 | |
| 143 | ShaderSource(const std::string &filename); |
| 144 | |
| 145 | size_t get_id() const; |
| 146 | |
| 147 | const std::string &get_filename() const; |
| 148 | |
| 149 | void set_source(const std::string &source); |
| 150 | |
| 151 | const std::string &get_source() const; |
| 152 | |
| 153 | private: |
| 154 | size_t id; |
| 155 | |
| 156 | std::string filename; |
| 157 | |
| 158 | std::string source; |
| 159 | }; |
| 160 | |
| 161 | /** |
| 162 | * @brief Contains shader code, with an entry point, for a specific shader stage. |