Skip to content

Add async hook support for GltfExtensionHandler#23198

Open
jiangheng90 wants to merge 2 commits intobevyengine:mainfrom
jiangheng90:async-handler-hook
Open

Add async hook support for GltfExtensionHandler#23198
jiangheng90 wants to merge 2 commits intobevyengine:mainfrom
jiangheng90:async-handler-hook

Conversation

@jiangheng90
Copy link
Contributor

@jiangheng90 jiangheng90 commented Mar 3, 2026

continue #23026

this is an async hook support for on_gltf_primitive, so that makes it enable to support wasm

the detail implementation is at here and wasm website deploy here

@jiangheng90
Copy link
Contributor Author

models are works fine on browser now
截屏2026-03-03 13 56 31
截屏2026-03-03 14 01 20

@jiangheng90 jiangheng90 changed the title Add async hook for GltfExtensionHandler Add async hook support for GltfExtensionHandler Mar 3, 2026
@kfc35 kfc35 added S-Needs-Review Needs reviewer attention (from anyone!) to move forward A-glTF Related to the glTF 3D scene/model format labels Mar 3, 2026
@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible D-Straightforward Simple bug fixes and API improvements, docs, test and examples D-Async Deals with asynchronous abstractions labels Mar 3, 2026
unused,
reason = "default trait implementations do not use the arguments because they are no-ops"
)]
fn on_gltf_mesh(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make all of these methods async, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andriyDev So far, I've only needed async for on_gltf_primitive. Given this, would it make sense to keep the other hooks synchronous for now? If other developers encounter use cases requiring async in the future, we can extend the API on demand at that point.

@jiangheng90 jiangheng90 requested a review from andriyDev March 5, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-glTF Related to the glTF 3D scene/model format C-Feature A new feature, making something new possible D-Async Deals with asynchronous abstractions D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants