MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / Commit

Method Commit

Hydrogent/src/HnTextureRegistry.cpp:123–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void 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
137HnTextureRegistry::TextureHandleSharedPtr HnTextureRegistry::Allocate(const pxr::TfToken& FilePath,
138 const TextureComponentMapping& Swizzle,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected