shame icon indicating copy to clipboard operation
shame copied to clipboard

Add wave intrinsics

Open RayMarch opened this issue 6 months ago • 0 comments
trafficstars

Wgsl has subgroup operations now https://www.w3.org/TR/WGSL/#subgroup-ops we should add them to the shame api

Steps

  • [ ] define expr enum SubgroupOperations containing all the functions
  • [ ] impl TypeCheck for SubgroupOperations
  • [ ] add shame::any::Any associated functions fo revery subgroup op
  • [ ] add typed rust frontend for those Any functions.
  • [ ] add documentation to the public rust frontend functions

The Any api is designed to match the WGSL spec, so it uses their subgroup terminology, however the rust frontend does not use this terminology for reasons outlined here: https://gist.github.com/RayMarch/8e258008211e408a6cf73b63c46cc97b

RayMarch avatar May 04 '25 11:05 RayMarch