shame icon indicating copy to clipboard operation
shame copied to clipboard

Support for compute image types?

Open brandon-reinhart opened this issue 2 years ago • 2 comments

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?

brandon-reinhart avatar Jul 13 '22 16:07 brandon-reinhart

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 avatar Jul 13 '22 17:07 RayMarch

@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!

RayMarch avatar Jul 13 '22 17:07 RayMarch