mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-07 03:52:41 +08:00
resource states & fgd signal split end barrier (#14207)
This commit is contained in:
@@ -237,6 +237,11 @@ void ResourceGraph::unmount(uint64_t completedFenceValue) {
|
||||
if (texture.texture && texture.fenceValue <= completedFenceValue) {
|
||||
invalidatePersistentRenderPassAndFramebuffer(texture.texture.get());
|
||||
texture.texture.reset();
|
||||
const auto& traits = get(ResourceGraph::Traits, resg, vertID);
|
||||
if (traits.hasSideEffects()) {
|
||||
auto& states = get(ResourceGraph::States, resg, vertID);
|
||||
states.states = cc::gfx::AccessFlagBit::NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user