diff --git a/jsdoc-testing/tsconfig.jsdoc.json b/jsdoc-testing/tsconfig.jsdoc.json
index 1d1a5cfa4..ab64cd7f0 100644
--- a/jsdoc-testing/tsconfig.jsdoc.json
+++ b/jsdoc-testing/tsconfig.jsdoc.json
@@ -19,6 +19,7 @@
"allowJs": true,
"declaration": true,
"emitDeclarationOnly": true,
+ "rootDir": "../three.js/src",
"outDir": "jsdoc",
"forceConsistentCasingInFileNames": true,
"strict": true
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8a97aca3e..cb32b5551 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -131,9 +131,6 @@ importers:
'@types/webxr':
specifier: '>=0.5.17'
version: 0.5.24
- '@webgpu/types':
- specifier: '*'
- version: 0.1.67
fflate:
specifier: ~0.8.2
version: 0.8.2
@@ -936,9 +933,6 @@ packages:
'@vitest/utils@4.0.18':
resolution: {integrity: sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA==}
- '@webgpu/types@0.1.67':
- resolution: {integrity: sha512-uk53+2ECGUkWoDFez/hymwpRfdgdIn6y1ref70fEecGMe5607f4sozNFgBk0oxlr7j2CRGWBEc3IBYMmFdGGTQ==}
-
abbrev@4.0.0:
resolution: {integrity: sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==}
engines: {node: ^20.17.0 || >=22.9.0}
@@ -3312,8 +3306,6 @@ snapshots:
'@vitest/pretty-format': 4.0.18
tinyrainbow: 3.0.3
- '@webgpu/types@0.1.67': {}
-
abbrev@4.0.0: {}
acorn-jsx@5.3.2(acorn@8.15.0):
diff --git a/types/three/package.json b/types/three/package.json
index 51f09c34d..28804d571 100644
--- a/types/three/package.json
+++ b/types/three/package.json
@@ -24,7 +24,6 @@
"@tweenjs/tween.js": "~23.1.3",
"@types/stats.js": "*",
"@types/webxr": ">=0.5.17",
- "@webgpu/types": "*",
"fflate": "~0.8.2",
"meshoptimizer": "~1.0.1"
},
diff --git a/types/three/src/renderers/webgpu/WebGPUBackend.d.ts b/types/three/src/renderers/webgpu/WebGPUBackend.d.ts
index 09138368b..c90e0139b 100644
--- a/types/three/src/renderers/webgpu/WebGPUBackend.d.ts
+++ b/types/three/src/renderers/webgpu/WebGPUBackend.d.ts
@@ -1,14 +1,19 @@
-///
-
import { CoordinateSystem, HalfFloatType, UnsignedByteType } from "../../constants.js";
import Backend, { BackendParameters } from "../common/Backend.js";
+interface GPUDevice {}
+
+interface GPUCanvasContext {}
+
export interface WebGPUBackendParameters extends BackendParameters {
alpha?: boolean | undefined;
- requiredLimits?: Record | undefined;
+ requiredLimits?: Record | undefined;
trackTimestamp?: boolean | undefined;
device?: GPUDevice | undefined;
- powerPreference?: GPUPowerPreference | undefined;
+ powerPreference?:
+ | "low-power"
+ | "high-performance"
+ | undefined;
context?: GPUCanvasContext | undefined;
outputType?: typeof UnsignedByteType | typeof HalfFloatType | undefined;
}
diff --git a/types/three/src/textures/ExternalTexture.d.ts b/types/three/src/textures/ExternalTexture.d.ts
index fb5f442d1..aa9fee6e4 100644
--- a/types/three/src/textures/ExternalTexture.d.ts
+++ b/types/three/src/textures/ExternalTexture.d.ts
@@ -1,7 +1,8 @@
-///
-
import { Texture } from "./Texture.js";
+interface GPUTexture {
+}
+
declare class ExternalTexture extends Texture {
sourceTexture: WebGLTexture | GPUTexture | null;