Skip to content

Add wave intrinsics #9

@RayMarch

Description

@RayMarch

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 for every 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions