Visitar URL original
[@types/three] Import WebGPU in KTX2Loader.d.ts · Issue #71875 · DefinitelyTyped/DefinitelyTyped · GitHub
Skip to content

[@types/three] Import WebGPU in KTX2Loader.d.ts #71875

Open

Description

@thomasscholz

Discussed in #70307

Originally posted by riahimedyassin August 16, 2024

Issue

[@typescript/KTX2Loader]
The import statement of Renderer and WebGPU is not recognized by the package.
Needed to change it as following in order for the package to work :

// Current Version 
import { Renderer, WebGPURenderer } from "three/webgpu";
// Correct Import 
import { Renderer, WebGPURenderer } from "three/build/three.webgpu.js";

Activity

  1. RDNATOS commented on Jul 30, 2025

    @RDNATOS

    node_modules/@webgpu/types/dist/index.d.ts:138:7 - error TS2304: Cannot find name 'VideoFrame'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions