Skip to content

Commit

Permalink
subgroupballot metal out
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Sep 30, 2023
1 parent b851a52 commit 7ad4bd5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/back/msl/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,7 @@ impl<W: Write> Writer<W> {
crate::Expression::CallResult(_)
| crate::Expression::AtomicResult { .. }
| crate::Expression::WorkGroupUniformLoadResult { .. }
| crate::Expression::SubgroupBallotResult
| crate::Expression::RayQueryProceedResult => {
unreachable!()
}
Expand Down Expand Up @@ -1963,7 +1964,6 @@ impl<W: Write> Writer<W> {
}
write!(self.out, "}}")?;
}
crate::Expression::SubgroupBallotResult => todo!(),
}
Ok(())
}
Expand Down Expand Up @@ -2977,7 +2977,13 @@ impl<W: Write> Writer<W> {
}
}
}
crate::Statement::SubgroupBallot { result } => todo!(),
crate::Statement::SubgroupBallot { result } => {
write!(self.out, "{level}")?;
let name = self.namer.call("");
self.start_baking_expression(result, &context.expression, &name)?;
self.named_expressions.insert(result, name);
write!(self.out, "{NAMESPACE}::simd_active_threads_mask();")?;
}
}
}

Expand Down

0 comments on commit 7ad4bd5

Please sign in to comment.