Skip to content

Commit bb0a76f

Browse files
save ideas before the weekend
1 parent dbc06dd commit bb0a76f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

09_DepthBufferAndCamera/CAssetConverter.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,21 @@ auto CAssetConverter::reserve(const SInput& input) -> SResults
107107
core::unordered_set<typename cache_t::value_type*/*TODO: Hash,Equals*/> conser;
108108
for (auto& asset : std::get<cache_t>(retval.m_typedDagNodes))
109109
{
110+
assert(!asset.second.canonical);
111+
//assert(!asset.second.result);
110112
auto [it, inserted] = conser.insert(&asset);
111113
if (inserted)
112114
{
113115
if (input.readCache)
114116
continue; // TODO: below
115117
// if (auto found=input.readCache->find(); found!=input.readCache->end())
116-
// asset.second.result = found->result;
118+
// {
119+
// TODO: insert to our own cache
120+
// asset.second.result = &((*it)->second.result = found->result);
121+
// }
117122
}
118123
else
119-
{
120-
assert(!asset.second.canonical);
121124
asset.second.canonical = &(*it)->second;
122-
}
123125
}
124126
};
125127
// Lets see if we can collapse any of the (Asset Content) into the same thing,

0 commit comments

Comments
 (0)