Skip to content

refactor: object wrap WebGPU#27665

Merged
crowlKats merged 28 commits intodenoland:mainfrom
crowlKats:webgpu-wrap
Feb 12, 2025
Merged

refactor: object wrap WebGPU#27665
crowlKats merged 28 commits intodenoland:mainfrom
crowlKats:webgpu-wrap

Conversation

@crowlKats
Copy link
Member

@crowlKats crowlKats commented Jan 14, 2025

Opened denoland/webgpu-examples#19 as well.

Fixes #25874
Fixes #26760
Fixes #24288
Fixes #24798
Fixes #25627
Fixes #25915
Fixes #26769

Binary size increase: 897kb

@jlucaso1
Copy link

@crowlKats
Yesterday a new wgpu version launched:
https://github.com/gfx-rs/wgpu/releases/tag/v24.0.0

@crowlKats
Copy link
Member Author

@jlucaso1 I am aware; we actually likely wont land this PR in this repo for the time being as we still figure out problems with object wrap, but rather will land it directly in the wgpu repo (in the deno_webgpu directory that lives there, since its a shallow copy of our ext/webgpu directly), and will continue from there

@crowlKats crowlKats marked this pull request as ready for review January 30, 2025 11:31
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
@littledivy
Copy link
Member

Looks good at a glance. Can you update the PR description with binary size increase?

@petamoriken
Copy link
Contributor

petamoriken commented Feb 4, 2025

Does this PR resolve the issues of GPUAdapterInfo being freed (#25874, #26760)?

@crowlKats
Copy link
Member Author

@petamoriken yes it does, since there arent resources anymore so saniters arent a concern anymore!

Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM!

@crowlKats crowlKats enabled auto-merge (squash) February 12, 2025 10:51
@crowlKats crowlKats merged commit 7253820 into denoland:main Feb 12, 2025
18 checks passed
@crowlKats crowlKats deleted the webgpu-wrap branch February 12, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Comments