Skip to content

Commit

Permalink
subgroup: fix doc error on SubgroupBroadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Oct 5, 2023
1 parent eb679f3 commit 2bbc09e
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1890,34 +1890,17 @@ pub enum Statement {
result: Handle<Expression>,
},

// subgroupBroadcast(value, lane) -> value
// subgroupBroadcastFirst(value) -> value
SubgroupBroadcast {
/// Specifies which thread to broadcast from
mode: BroadcastMode,
/// The value to broadcast over
argument: Handle<Expression>,
/// The [`SubgroupBroadcastResult`] expression representing this load's result.
/// The [`SubgroupOperationResult`] expression representing this load's result.
///
/// [`SubgroupBroadcastResult`]: Expression::SubgroupBroadcastResult
/// [`SubgroupOperationResult`]: Expression::SubgroupOperationResult
result: Handle<Expression>,
},

// Reduction on bool
// subgroupAll(bool) -> bool
// subgroupAny(bool) -> bool
// Reduction on float, int
// subgroupMin(value) -> value
// subgroupMax(value) -> value
// subgroupAdd(value) -> value
// subgroupMul(value) -> value
// Reduction on int
// subgroupAnd(value) -> value
// subgroupOr(value) -> value
// subgroupXor(value) -> value
// Scan on float, int
// subgroupPrefixAdd(value) -> value
// subgroupPrefixMul(value) -> value
/// Compute a collective operation across all active threads in th subgroup
SubgroupCollectiveOperation {
/// What operation to compute
Expand Down

0 comments on commit 2bbc09e

Please sign in to comment.