Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Jul 5, 2024
1 parent dc2d4b4 commit 8064f0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions native/cocos/renderer/pipeline/custom/NativeExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,17 +383,17 @@ struct RenderGraphVisitor : boost::dfs_visitor<> {
void tryBindQueueDescriptorSets(RenderGraph::vertex_descriptor queueID) const {
auto iter = ctx.renderGraphDescriptorSet.find(queueID);
if (iter != ctx.renderGraphDescriptorSet.end()) {
const auto [passSet, queueSet] = iter->second;
const auto& [passSet, queueSet] = iter->second;
if (passSet) {
ctx.cmdBuff->bindDescriptorSet(
static_cast<uint32_t>(pipeline::SetIndex::GLOBAL),
get<0>(iter->second));
passSet);
}
CC_ENSURES(get<1>(iter->second));
CC_ENSURES(queueSet);
static_assert(static_cast<uint32_t>(pipeline::SetIndex::COUNT) == 3);
ctx.cmdBuff->bindDescriptorSet(
static_cast<uint32_t>(pipeline::SetIndex::COUNT),
get<1>(iter->second));
queueSet);
}
}
void tryBindLeafOverwritePerPassDescriptorSet(RenderGraph::vertex_descriptor leafID) const {
Expand Down

0 comments on commit 8064f0d

Please sign in to comment.