subpass output sort logic (#16314)

* subpass local attachment sort logic

* fix narrow cast
This commit is contained in:
Zeqiang Li
2023-09-22 18:34:46 +08:00
committed by GitHub
parent 2ade35990f
commit 2c178e08f6
2 changed files with 10 additions and 3 deletions
@@ -296,7 +296,7 @@ void addRasterViewImpl(
auto &pass = get(RasterPassTag{}, passID, renderGraph);
CC_EXPECTS(subpass.subpassID < num_vertices(pass.subpassGraph));
auto &subpassData = get(SubpassGraph::SubpassTag{}, pass.subpassGraph, subpass.subpassID);
const auto slotID = getSlotID(pass, name, attachmentType);
const auto slotID = static_cast<uint32_t>(subpass.rasterViews.size());
CC_EXPECTS(subpass.rasterViews.size() == subpassData.rasterViews.size());
auto nameIter = subpassData.rasterViews.find(name);