git.s-ol.nu ~forks/DiligentTools / cc96fcf
Fixed clang build errors assiduous 11 months ago
1 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
112112
113113 private:
114114 template <typename AllocatorType, typename ObjectType>
115 friend class MakeNewRCObj;
115 friend class Diligent::MakeNewRCObj;
116116
117117 ResourceManager(IReferenceCounters* pRefCounters,
118118 IRenderDevice* pDevice,
123123 DynamicTextureAtlasCreateInfo m_DefaultAtlasDesc;
124124 const std::string m_DefaultAtlasName;
125125
126 std::mutex m_AtlasesMtx;
127 std::unordered_map<TEXTURE_FORMAT, RefCntAutoPtr<IDynamicTextureAtlas>> m_Atlases;
126 using AtlasesHashMapType = std::unordered_map<TEXTURE_FORMAT, RefCntAutoPtr<IDynamicTextureAtlas>, std::hash<Uint32>>;
127 std::mutex m_AtlasesMtx;
128 AtlasesHashMapType m_Atlases;
128129
129 std::mutex m_TexAllocationsMtx;
130 std::unordered_map<std::string, RefCntWeakPtr<ITextureAtlasSuballocation>> m_TexAllocations;
130 using TexAllocationsHashMapType = std::unordered_map<std::string, RefCntWeakPtr<ITextureAtlasSuballocation>>;
131 std::mutex m_TexAllocationsMtx;
132 TexAllocationsHashMapType m_TexAllocations;
131133
132134 std::atomic_uint32_t m_ResourceVersion = {};
133135 };