shame
shame copied to clipboard
Add wave intrinsics
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
SubgroupOperationscontaining all the functions - [ ]
impl TypeCheck for SubgroupOperations - [ ] add
shame::any::Anyassociated functions fo revery subgroup op - [ ] add typed rust frontend for those
Anyfunctions. - [ ] 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