const useCombinedRenderTarget: (
targets: OffscreenRenderContext[],
) => {
width: number,
height: number,
pixelRatio: number,
samples: number,
device: GPUDevice,
gpuContext: GPUCanvasContext,
colorSpace: ColorSpace,
colorInput: ColorSpace,
depthStencilState?: GPUDepthStencilState,
viewType: RenderViewType,
swap?: () => void & () => void,
depth?:
TextureSource & { history?: TextureSource[], swap: () => void },
source:
TextureSource & { history?: TextureSource[], swap: () => void },
colorStates: GPUColorTargetState[],
viewAttachments:
({
depthStencilAttachment?: GPURenderPassDepthStencilAttachment,
colorAttachments: GPURenderPassColorAttachment[],
})[],
sources:
(TextureSource & { history?: TextureSource[], swap: () => void })[],
}
packages / workbench / src / render / render-target.ts