| 235 | }; |
| 236 | |
| 237 | inline std::string getStringForMapType(IShaderLayer::MapType type) |
| 238 | { |
| 239 | for (const auto& pair : MapTypeNames) |
| 240 | { |
| 241 | if (type == pair.second) |
| 242 | { |
| 243 | return pair.first; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | return std::string(); |
| 248 | } |
| 249 | |
| 250 | inline IShaderLayer::MapType getMapTypeForString(const std::string& typeString) |
| 251 | { |
no outgoing calls
no test coverage detected