type UseGPURenderContext = {
width: number,
height: number,
pixelRatio: number,
samples: number,
device: GPUDevice,
gpuContext: GPUCanvasContext,
colorSpace: ColorSpace,
colorInput: ColorSpace,
colorStates: GPUColorTargetState[],
colorAttachments: GPURenderPassColorAttachment[],
depthTexture?: GPUTexture,
depthStencilState?: GPUDepthStencilState,
depthStencilAttachment?: GPURenderPassDepthStencilAttachment,
swap?: (view?: GPUTextureView) => void,
depth?: TextureSource,
source?: TextureTarget,
sources?: TextureTarget[],
}
packages / core / src / types.ts