webgpuCacheRenderPipelineTree.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. import type { Nullable } from "../../types";
  2. import { WebGPUCacheRenderPipeline } from "./webgpuCacheRenderPipeline";
  3. /** @internal */
  4. declare class NodeState {
  5. values: {
  6. [id: number]: NodeState;
  7. };
  8. pipeline: GPURenderPipeline;
  9. constructor();
  10. count(): [number, number];
  11. }
  12. /** @internal */
  13. export declare class WebGPUCacheRenderPipelineTree extends WebGPUCacheRenderPipeline {
  14. private static _Cache;
  15. private _nodeStack;
  16. static GetNodeCounts(): {
  17. nodeCount: number;
  18. pipelineCount: number;
  19. };
  20. static _GetPipelines(node: NodeState, pipelines: Array<Array<number>>, curPath: Array<number>, curPathLen: number): void;
  21. static GetPipelines(): Array<Array<number>>;
  22. static ResetCache(): void;
  23. reset(): void;
  24. protected _getRenderPipeline(param: {
  25. token: any;
  26. pipeline: Nullable<GPURenderPipeline>;
  27. }): void;
  28. protected _setRenderPipeline(param: {
  29. token: NodeState;
  30. pipeline: Nullable<GPURenderPipeline>;
  31. }): void;
  32. }
  33. export {};