diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 80f2baccd..079419863 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -86,6 +86,9 @@ importers:
'@types/webxr':
specifier: '*'
version: 0.5.19
+ '@webgpu/types':
+ specifier: '*'
+ version: 0.1.44
fflate:
specifier: ~0.8.2
version: 0.8.2
@@ -467,6 +470,9 @@ packages:
'@ungap/structured-clone@1.2.0':
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
+ '@webgpu/types@0.1.44':
+ resolution: {integrity: sha512-JDpYJN5E/asw84LTYhKyvPpxGnD+bAKPtpW9Ilurf7cZpxaTbxkQcGwOd7jgB9BPBrTYQ+32ufo4HiuomTjHNQ==}
+
abbrev@2.0.0:
resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
@@ -2592,6 +2598,8 @@ snapshots:
'@ungap/structured-clone@1.2.0': {}
+ '@webgpu/types@0.1.44': {}
+
abbrev@2.0.0: {}
acorn-jsx@5.3.2(acorn@8.12.1):
diff --git a/tsconfig.all-files.json b/tsconfig.all-files.json
index d1413f401..6010e1fdd 100644
--- a/tsconfig.all-files.json
+++ b/tsconfig.all-files.json
@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "node16",
"lib": [
- "es6",
+ "es2017",
"dom"
],
"noImplicitAny": true,
diff --git a/types/three/package.json b/types/three/package.json
index 1a597740f..0e6f4e64f 100644
--- a/types/three/package.json
+++ b/types/three/package.json
@@ -23,6 +23,7 @@
"@tweenjs/tween.js": "~23.1.3",
"@types/stats.js": "*",
"@types/webxr": "*",
+ "@webgpu/types": "*",
"fflate": "~0.8.2",
"meshoptimizer": "~0.18.1"
},
diff --git a/types/three/src/renderers/webgpu/WebGPUBackend.d.ts b/types/three/src/renderers/webgpu/WebGPUBackend.d.ts
index c17622dae..f4d763231 100644
--- a/types/three/src/renderers/webgpu/WebGPUBackend.d.ts
+++ b/types/three/src/renderers/webgpu/WebGPUBackend.d.ts
@@ -1,11 +1,15 @@
+///
+
import { CoordinateSystem } from "../../constants.js";
import Backend, { BackendParameters } from "../common/Backend.js";
export interface WebGPUBackendParameters extends BackendParameters {
alpha?: boolean | undefined;
- antialias?: boolean | undefined;
- sampleCount?: number | undefined;
+ requiredLimits?: Record | undefined;
trackTimestamp?: boolean | undefined;
+ device?: GPUDevice | undefined;
+ powerPreference?: GPUPowerPreference | undefined;
+ context?: GPUCanvasContext | undefined;
}
export default class WebGPUBackend extends Backend {
diff --git a/types/three/tsconfig.json b/types/three/tsconfig.json
index c83d13ed4..3eed3a5aa 100644
--- a/types/three/tsconfig.json
+++ b/types/three/tsconfig.json
@@ -2,7 +2,7 @@
"compilerOptions": {
"module": "node16",
"lib": [
- "es6",
+ "es2017",
"dom"
],
"noImplicitAny": true,