@bvdmitri/web360 / createViewer
Function: createViewer()
createViewer(
canvas,options?):Promise<Viewer>
Defined in: web360/src/viewer.ts:46
Opens a Viewer on canvas.
Parameters
canvas
options?
ViewerOptions = {}
Returns
Promise<Viewer>
Remarks
It needs a WebGPU device and a WebGPU context on the canvas, and throws a Web360Error (render-unavailable) without either. Each frame is copied onto the GPU as a rendition's are: imported where the browser can, read on the CPU where it cannot.