-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Closed
Description
Description
So far, KTX2Loader doesn't work with WebGPURenderer. If we forcely use it in WebGPURenderer. some errors occur.
WebGPUTextureUtils.js:642 Uncaught TypeError: Cannot read properties of undefined (reading 'width')
at WebGPUTextureUtils._copyCompressedBufferToTexture (WebGPUTextureUtils.js:642:1)
at WebGPUTextureUtils.updateTexture (WebGPUTextureUtils.js:370:1)
at WebGPUBackend.updateTexture (WebGPUBackend.js:1146:1)
at Textures.updateTexture (Textures.js:243:1)
at Bindings._init (Bindings.js:99:1)
at Bindings.getForRender (Bindings.js:33:1)
at Bindings.updateForRender (Bindings.js:79:1)
at WebGPURenderer._renderObjectDirect (Renderer.js:1714:1)
at WebGPURenderer.renderObject (Renderer.js:1658:1)
at WebGPURenderer._renderObjects (Renderer.js:1597:1)
Solution
Maybe there is another way to load ktx2?
Alternatives
Additional context
No response