Refactor & improve
This commit is contained in:
parent
b51cba28ad
commit
b3d9229af5
22 changed files with 713 additions and 334 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { ErrorHandler, Severity } from '../error-handler';
|
||||
|
||||
export const initializeGPU = async (): Promise<GPUDevice> => {
|
||||
export const initializeGpu = async (): Promise<GPUDevice> => {
|
||||
const gpu = navigator.gpu;
|
||||
if (!gpu) {
|
||||
throw new Error('WebGPU is not supported in your browser');
|
||||
|
|
|
|||
Loading…
Reference in a new issue