webgpuClearQuad.d.ts 1.1 KB

1234567891011121314151617181920212223
  1. import type { InternalTexture } from "../../Materials/Textures/internalTexture";
  2. import type { IColor4Like } from "../../Maths/math.like";
  3. import type { VertexBuffer } from "../../Buffers/buffer";
  4. import type { Nullable } from "../../types";
  5. import type { WebGPUEngine } from "../webgpuEngine";
  6. import "../../ShadersWGSL/clearQuad.vertex";
  7. import "../../ShadersWGSL/clearQuad.fragment";
  8. /** @internal */
  9. export declare class WebGPUClearQuad {
  10. private _device;
  11. private _engine;
  12. private _cacheRenderPipeline;
  13. private _effect;
  14. private _bindGroups;
  15. private _depthTextureFormat;
  16. private _bundleCache;
  17. private _keyTemp;
  18. setDepthStencilFormat(format: GPUTextureFormat | undefined): void;
  19. setColorFormat(format: GPUTextureFormat | null): void;
  20. setMRTAttachments(attachments: number[], textureArray: InternalTexture[], textureCount: number): void;
  21. constructor(device: GPUDevice, engine: WebGPUEngine, emptyVertexBuffer: VertexBuffer);
  22. clear(renderPass: Nullable<GPURenderPassEncoder>, clearColor?: Nullable<IColor4Like>, clearDepth?: boolean, clearStencil?: boolean, sampleCount?: number): Nullable<GPURenderBundle>;
  23. }