type UseGPURenderContext = {
width: number,
height: number,
pixelRatio: number,
samples: number,
device: GPUDevice,
gpuContext: GPUCanvasContext,
colorSpace: ColorSpace,
colorInput: ColorSpace,
colorStates: GPUColorTargetState[],
depthStencilState?: GPUDepthStencilState,
viewType: RenderViewType,
viewAttachments: RenderViewAttachment[],
swap?: () => void,
depth?: TextureSource,
source?: TextureSource,
sources?: TextureSource[],
}
packages / core / src / types.ts