Skip to content

Commit

Permalink
onGlobalPipelineStateChanged added
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Sep 12, 2023
1 parent 7bb1c99 commit 7559379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cocos/rendering/custom/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1426,6 +1426,7 @@ export interface PipelineBuilder {
* @param pipeline @en Current render pipeline @zh 当前管线
*/
setup (cameras: Camera[], pipeline: BasicPipeline): void;
onGlobalPipelineStateChanged? (): void;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,7 @@ class PipelineBuilder {
* @param pipeline @en Current render pipeline @zh 当前管线
*/
virtual void setup(const ccstd::vector<scene::Camera*> &cameras, BasicPipeline *pipeline) = 0;
virtual void onGlobalPipelineStateChanged() = 0;
};

/**
Expand Down

0 comments on commit 7559379

Please sign in to comment.