Skip to content

Commit

Permalink
update implementatrion
Browse files Browse the repository at this point in the history
  • Loading branch information
hana-alice committed Sep 8, 2023
1 parent 64ca6b8 commit c8faea4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cocos/rendering/custom/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { BasicPipeline } from './pipeline';
import {
Blit, ClearView, ComputePass, ComputeSubpass, CopyPass, Dispatch, FormatView, ManagedBuffer, ManagedResource, ManagedTexture, MovePass,
RasterPass, RasterSubpass, RaytracePass, RenderGraph, RenderGraphVisitor, RasterView, ComputeView,
RenderQueue, RenderSwapchain, ResolvePass, ResourceGraph, ResourceGraphVisitor, SceneData, SubresourceView,
RenderQueue, RenderSwapchain, ResolvePass, ResourceGraph, ResourceGraphVisitor, SceneData, SubresourceView, PersistentBuffer, PersistentTexture,
} from './render-graph';
import { AccessType, ResourceResidency, SceneFlags } from './types';
import { hashCombineNum, hashCombineStr } from './define';
Expand Down Expand Up @@ -361,7 +361,8 @@ class ResourceVisitor implements ResourceGraphVisitor {
managed (value: ManagedResource): void {
this.dependency();
}
persistentBuffer (value: Buffer): void {
persistentBuffer (value: Buffer | PersistentBuffer): void {
//noop
}

dependency (): void {
Expand All @@ -373,7 +374,7 @@ class ResourceVisitor implements ResourceGraphVisitor {
depthFirstSearch(this._passManagerVis.graphView, this._passManagerVis, this._passManagerVis.colorMap);
}

persistentTexture (value: Texture): void {
persistentTexture (value: Texture | PersistentTexture): void {
this.dependency();
}
framebuffer (value: Framebuffer): void {
Expand All @@ -383,8 +384,10 @@ class ResourceVisitor implements ResourceGraphVisitor {
this.dependency();
}
formatView (value: FormatView): void {
//noop
}
subresourceView (value: SubresourceView): void {
//noop
}
}

Expand Down

0 comments on commit c8faea4

Please sign in to comment.