| 121 | } |
| 122 | |
| 123 | void HnTextureRegistry::Commit(IDeviceContext* pContext) |
| 124 | { |
| 125 | if (m_pResourceManager) |
| 126 | { |
| 127 | m_pResourceManager->UpdateTextures(m_pDevice, pContext); |
| 128 | } |
| 129 | std::lock_guard<std::mutex> Lock{m_PendingTexturesMtx}; |
| 130 | for (auto tex_it : m_PendingTextures) |
| 131 | { |
| 132 | InitializeHandle(m_pDevice, pContext, tex_it.second.pLoader, tex_it.second.SamDesc, *tex_it.second.Handle); |
| 133 | } |
| 134 | m_PendingTextures.clear(); |
| 135 | } |
| 136 | |
| 137 | HnTextureRegistry::TextureHandleSharedPtr HnTextureRegistry::Allocate(const pxr::TfToken& FilePath, |
| 138 | const TextureComponentMapping& Swizzle, |
nothing calls this directly
no outgoing calls
no test coverage detected