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

Support for compute image types? #2

Open
brandon-reinhart opened this issue Jul 13, 2022 · 2 comments
Open

Support for compute image types? #2

brandon-reinhart opened this issue Jul 13, 2022 · 2 comments

Comments

@brandon-reinhart
Copy link

It didn't look to me like image types were supported yet? For example, I'd like to bind a render target for the shaded outputs of a compute level ray tracer with a bind group might be shaped something like this (in wgsl):

[[group(0), binding(0)]]
var texture: texture_storage_2d<rgba32float, read_write>;

I think the equivalent in glsl is something like image2d?

@RayMarch
Copy link
Owner

yes, they are not supported yet.
I am not yet fully satisfied with compute shader ergonomics. My experience in using them is also quite limited, so since i never used image2d and the likes, i delayed their inclusion until after 1.0.0 release to see if people are interested in the project at all.

There are many things that are missing to make compute shaders great

  • barriers
  • loops
  • storage images
  • atomics

at the moment i am working on loops.

@RayMarch
Copy link
Owner

@brandon-reinhart i am available for more in-depth discussions on my community discord
https://discord.gg/Xm5Ck7CCJk
If you like to contribute we might be able to get image2d support faster.
i'd also love to hear your ideas/feedback!

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

No branches or pull requests

2 participants