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

Method set_source

framework/core/shader_module.cpp:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void ShaderSource::set_source(const std::string &source_)
171{
172 source = source_;
173 std::hash<std::string> hasher{};
174 id = hasher(std::string{this->source.cbegin(), this->source.cend()});
175}
176
177const std::string &ShaderSource::get_source() const
178{

Callers 1

create_shader_moduleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected