| 150 | } |
| 151 | |
| 152 | ShaderSource::ShaderSource(const std::string &filename) : |
| 153 | filename{filename}, |
| 154 | source{fs::read_text_file(filename)} |
| 155 | { |
| 156 | std::hash<std::string> hasher{}; |
| 157 | id = hasher(std::string{this->source.cbegin(), this->source.cend()}); |
| 158 | } |
| 159 | |
| 160 | size_t ShaderSource::get_id() const |
| 161 | { |
nothing calls this directly
no test coverage detected