| 236 | } |
| 237 | |
| 238 | ref_ptr<Texture::ResourceInfo> SymbolsTexture::FindResource(Texture::Key const & key, bool & newResource) |
| 239 | { |
| 240 | newResource = false; |
| 241 | if (key.GetType() != Texture::ResourceType::Symbol) |
| 242 | return nullptr; |
| 243 | |
| 244 | std::string const & symbolName = static_cast<SymbolKey const &>(key).GetSymbolName(); |
| 245 | |
| 246 | auto it = m_definition.find(symbolName); |
| 247 | ASSERT(it != m_definition.end(), (symbolName)); |
| 248 | return make_ref(&it->second); |
| 249 | } |
| 250 | |
| 251 | void SymbolsTexture::Fail(ref_ptr<dp::GraphicsContext> context) |
| 252 | { |