MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / ShaderSource

Method ShaderSource

framework/core/shader_module.cpp:152–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152ShaderSource::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
160size_t ShaderSource::get_id() const
161{

Callers

nothing calls this directly

Calls 1

read_text_fileFunction · 0.85

Tested by

no test coverage detected