Skip to content

Commit

Permalink
metal: make SyncPoint: Send+Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Dec 25, 2024
1 parent 433ac28 commit 28f0ebe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blade-graphics/src/metal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ impl AccelerationStructure {
pub struct SyncPoint {
cmd_buf: Retained<ProtocolObject<dyn metal::MTLCommandBuffer>>,
}
// Safe because all mutability is externalized
unsafe impl Send for SyncPoint {}
unsafe impl Sync for SyncPoint {}

struct TimingData {
pass_names: Vec<String>,
Expand Down

0 comments on commit 28f0ebe

Please sign in to comment.