Skip to content

Support additional shader intrinsics #197

@Jasper-Bekkers

Description

@Jasper-Bekkers

Some of these are only available in specific shader stages and should error out in other stages (for example, calculating screenspace derivatives might be unavailable outside pixel shaders). Also some of these may need to add additional capablities (such as SubgropuBallotKHR).

Generic math functions

Bit instructions

  • OpBitFieldInsert
  • OpBitFieldSExtract / OpBitFieldUExtract
  • OpBitReverse
  • OpBitCount

Fragment shader functions

Compute

Subgroup instructions

  • Probably all of "3.37.21. Group and Subgroup Instructions" and "3.37.24. Non-Uniform Instructions", but if we want to start with a more limited set the following three are probably fine.
  • OpSubgroupBallotKHR
  • OpSubgroupFirstInvocationKHR
  • OpSubgroupReadInvocationKHR

Metadata

Metadata

Assignees

Labels

c: spirv-stdIssues specific to the spirv-std cratemcp: acceptedA major change to the compiler that has been accepted.t: good first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions