Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComputeNode: add method .onInit() #24363

Merged
merged 2 commits into from
Jul 25, 2022
Merged

ComputeNode: add method .onInit() #24363

merged 2 commits into from
Jul 25, 2022

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jul 19, 2022

Related issue: #23944

Description

ComputeNode.onInit() can be used to initialize Buffers using WebGPU or CPU.
In this case, I update to realize the init calcs using WebGPU.

https://raw.githack.com/sunag/three.js/dev-compute-init/examples/webgpu_compute.html

This contribution is funded by Google via Igalia

@sunag sunag added this to the r143 milestone Jul 19, 2022
@sunag sunag marked this pull request as ready for review July 19, 2022 16:25
@Mugen87 Mugen87 merged commit 7ad7827 into mrdoob:dev Jul 25, 2022
@sunag sunag deleted the dev-compute-init branch July 25, 2022 09:07
abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
* add method ComputeNode.onInit()

* update webgpu_compute example
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
* add method ComputeNode.onInit()

* update webgpu_compute example
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.

2 participants