Skip to content

Conversation

@RenaudRohlinger
Copy link
Collaborator

@RenaudRohlinger RenaudRohlinger commented Dec 28, 2023

The async behavior of the init method of the WebGLBackend has been removed as it breaks loaders such as KTX2Loader that depends on a webgl context and/or the renderer to be initialized.

Took the opportunity to move the texture related methods of the WebGLBackend to WebGLTextureUtils to align with the WebGPUBackend architecture.

Removed the isGPU check from the webgpu_loader_gltf_compressed as it now works with the WebGLBackend:
https://raw.githack.com/renaudrohlinger/three.js/webgl-ktxsupport/examples/webgpu_loader_gltf_compressed.html

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger marked this pull request as ready for review December 29, 2023 01:52
@sunag sunag added this to the r161 milestone Dec 29, 2023
@sunag sunag merged commit 3f19a05 into mrdoob:dev Dec 31, 2023
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
…rdoob#27463)

* wip

* cleanup webgl backend

* cleanup and add silentError

* cleanup WebGLTextureUtils

* move textures to textureutils

* remove handling error in hasFeatre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants