cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
5.49k stars 1.58k forks source link

pipelineEvent refactored #17233

Closed star-e closed 2 days ago

star-e commented 2 days ago

Replace forward pipeline's pipelineEvent dispatcher

Changelog

*


Continuous Integration

This pull request:


Compatibility Check

This pull request:

github-actions[bot] commented 2 days ago

Interface Check Report

! WARNING this pull request has changed these public interfaces:

@@ -24166,9 +24166,9 @@
     }
     export class PipelineStateManager {
         static getOrCreatePipelineState(device: gfx.Device, pass: renderer.Pass, shader: gfx.Shader, renderPass: gfx.RenderPass, ia: gfx.InputAssembler): gfx.PipelineState;
     }
-    export class PipelineEventProcessor extends EventTarget {
+    export class PipelineEventProcessor extends EventTarget implements __private._cocos_rendering_pipeline_event__IPipelineEvent {
         eventTargetOn: <TFunction extends (...any: any[]) => void>(type: string | number, callback: TFunction, thisArg?: any, once?: boolean | undefined) => TFunction;
         eventTargetOnce: <TFunction extends (...any: any[]) => void>(type: string | number, callback: TFunction, thisArg?: any) => TFunction;
         on(type: PipelineEventType, callback: any, target?: any, once?: boolean): typeof callback;
         once(type: PipelineEventType, callback: any, target?: any): typeof callback;
star-e commented 2 days ago

@cocos-robot run test cases

github-actions[bot] commented 2 days ago

@star-e, Please check the result of run test cases:

github-actions[bot] commented 2 days ago

@star-e, Please check the result of run test cases: