@blooper.gg/toodle / utils/boilerplate / initGpu
Function: initGpu()
initGpu(
canvas
,onUncapturedError?
):Promise
<{context
:GPUCanvasContext
;device
:GPUDevice
;presentationFormat
:GPUTextureFormat
; }>
Defined in: utils/boilerplate.ts:10
Parameters
canvas
HTMLCanvasElement
onUncapturedError?
(e
) => void
Returns
Promise
<{ context
: GPUCanvasContext
; device
: GPUDevice
; presentationFormat
: GPUTextureFormat
; }>