mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
replace std::unordered_map with ccstd::unordered_map (#10459)
* replace std::unordered_map with ccstd::unordered_map
This commit is contained in:
@@ -71,7 +71,7 @@ void FrameGraph::present(const TextureHandle &input, gfx::Texture *target, bool
|
||||
|
||||
if (useMoveSemantic) {
|
||||
// using a global map here so that the user don't need to worry about importing the targets every frame
|
||||
static std::unordered_map<uint32_t, std::pair<StringHandle, Texture>> presentTargets;
|
||||
static ccstd::unordered_map<uint32_t, std::pair<StringHandle, Texture>> presentTargets;
|
||||
if (!presentTargets.count(target->getTypedID())) {
|
||||
auto name = FrameGraph::stringToHandle(StringUtil::format("Present Target %d", target->getTypedID()).c_str());
|
||||
presentTargets.emplace(std::piecewise_construct, std::forward_as_tuple(target->getTypedID()), std::forward_as_tuple(name, Texture{target}));
|
||||
|
||||
Reference in New Issue
Block a user