Skip to content

Commit

Permalink
Always use hardware atomic floats on metal
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBrussee committed Oct 31, 2024
1 parent 1e30f26 commit 966f318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/brush-render/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ impl Backward<PrimaryBackend, 7> for RenderBackwards {

// TODO: Properly register hardware atomic floats as a cube feature when
// https://github.com/gfx-rs/wgpu/pull/6234 lands.
let hard_floats = false;
//
// On mac, this is needed as our wgpu version doesn't support CAS on metal yet...
let hard_floats = cfg!(target_os = "macos");

tracing::trace_span!("RasterizeBackwards", sync_burn = true).in_scope(|| unsafe {
client.execute_unchecked(
Expand Down

0 comments on commit 966f318

Please sign in to comment.