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

WebGPUBackend: Allows the device to be created externally #28192

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

chirsz-ever
Copy link
Contributor

@chirsz-ever chirsz-ever commented Apr 22, 2024

Description

For now the WebGPU Backend always create the device by itself. This PR makes it able to use the device object from the parameters argument, so three.js can run on deno.

@RenaudRohlinger RenaudRohlinger added this to the r164 milestone Apr 22, 2024
@Mugen87 Mugen87 merged commit 4993e3a into mrdoob:dev Apr 23, 2024
11 checks passed
@mrdoob
Copy link
Owner

mrdoob commented Apr 23, 2024

@chirsz-ever Do you have example code showing how you're using it on deno?

@Methuselah96 Methuselah96 mentioned this pull request Apr 23, 2024
27 tasks
@chirsz-ever
Copy link
Contributor Author

@mrdoob Sure, I create a repository to show the code:

https://github.com/chirsz-ever/deno-webgpu-window-demos

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.

4 participants