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

Add GPU.sb3 extension #1762

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

derpygamer2142
Copy link

This adds blocks to use compute shaders in a Turbowarp project. This uses WebGPU(which is experimental!), and only supports compute shaders. From what little research I've done it seems like it would be a pain to add any of the other types, so I'm not doing that.

  • Documentation here
  • Demos here
  • WGSL spec here
  • WebGPU spec here
  • WebGPU implementation status by browser here
  • WebGPU fundamentals here

Notes:

  • The only thing that's somewhat undocumented(I think, let me know if I forgot something) is buffer alignment and stuff, but webgpufundamentals does a better job of that.
  • This doesn't work in the packager with electron. Not sure why, a quick google search leads me to believe it's in beta.

gpusb3

@Thebloxers998
Copy link

It fails to get WebGPU adapter

@Thebloxers998
Copy link

What does the extension do

@derpygamer2142
Copy link
Author

It fails to get WebGPU adapter

what browser are you on, and what os

@derpygamer2142
Copy link
Author

What does the extension do

it's like pen+ but with numbers instead of colors and it all happens at the same time

@Thebloxers998
Copy link

Thebloxers998 commented Nov 26, 2024

It fails to get WebGPU adapter

what browser are you on, and what os

Chrome, Android, Why did you ask?

@Thebloxers998
Copy link

What does the extension do

it's like pen+ but with numbers instead of colors and it all happens at the same time

That would be more hard but ok

@derpygamer2142
Copy link
Author

It fails to get WebGPU adapter

what browser are you on, and what os

Chrome, Android, Why did you ask?

WebGPU is experimental and doesn't work on some devices. Seems like android wouldn't be supported based on webgpu.io.

@Thebloxers998
Copy link

It fails to get WebGPU adapter

what browser are you on, and what os

Chrome, Android, Why did you ask?

WebGPU is experimental and doesn't work on some devices. Seems like android wouldn't be supported based on webgpu.io.

Oh ok

@CubesterYT CubesterYT added the pr: new extension Pull requests that add a new extension label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: new extension Pull requests that add a new extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants