-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Open
Labels
Description
Description
I tried switching KTX2Loader to WebGPU because I saw some errors in one of our apps, and it turns out there are quite a few errors that can be reproduced from webgl_loader_texture_ktx2.
Additionally, I'm not sure how to get the behaviour of renderer.setScissor()
in WebGPURenderer; I commented it out here because it throws exceptions.
Reproduction steps
- Have local three.js for development
- Open webgl_loader_texture_ktx2.html
- Change the importmap to
"three": "../build/three.webgpu.js",
- Change WebGLRenderer to WebGPURenderer
- Add
if ( renderer.isWebGPURenderer ) await renderer.init();
below renderer creation - Comment out
renderer.setScissor(...)
(not sure how to work around this) - Open the page and scroll down
- The first few files work fine
- Scroll further. Then, you get warnings:

- Scroll further. Then, you get errors:

- Scroll to the end. Now, you get unrecoverable errors (Note: these files load fine with KTX2Loader: Add
VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT
#31689).

Code
Follow the steps above;
or copy from https://github.com/needle-tools/three.js/blob/feature/ktx2loader_webgpu/examples/webgl_loader_texture_ktx2.html
Live example
Screenshots
No response
Version
r180dev
Device
Desktop
Browser
Chrome
OS
MacOS