MCPcopy Create free account
hub / github.com/crosire/reshade / id_to_name

Method id_to_name

source/effect_codegen_glsl.cpp:632–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630 }
631
632 std::string id_to_name(id id) const
633 {
634 if (const auto it = _remapped_sampler_variables.find(id);
635 it != _remapped_sampler_variables.end())
636 id = it->second;
637
638 assert(id != 0);
639 if (const auto names_it = _names.find(id);
640 names_it != _names.end())
641 return names_it->second;
642 return '_' + std::to_string(id);
643 }
644
645 template <naming naming_type = naming::general>
646 void define_name(const id id, std::string name)

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected