| 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) |
nothing calls this directly
no test coverage detected