Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
schwa committed Dec 11, 2024
1 parent 3854645 commit 56e5d6b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public struct GaussianSplatAntimatter15RenderView: View {
let projectionMatrix = perspectiveProjection.projectionMatrix(for: [640, 480])

print("SETTING: \(debug)")
pass = GroupPass(id: "root", content: {
GaussianSplatAntimatter15RenderPass(id: "Antimatter15", splatCount: splats.count, splats: .init(splatsBuffer), indexedDistances: .init(indexedDistancesBuffer), modelMatrix: .identity, cameraMatrix: cameraTransform.matrix, projectionMatrix: projectionMatrix, debug: debug)
})
pass = GroupPass(id: "root"){
GaussianSplatAntimatter15RenderPass(id: .init(CompositeHash("Antimatter15", debug)), splatCount: splats.count, splats: .init(splatsBuffer), indexedDistances: .init(indexedDistancesBuffer), modelMatrix: .identity, cameraMatrix: cameraTransform.matrix, projectionMatrix: projectionMatrix, debug: debug)
}
}
}

Expand Down Expand Up @@ -309,3 +309,6 @@ struct CompositeHash <each T: Hashable>: Hashable {
}
}
}

extension CompositeHash: Sendable where repeat each T: Sendable {
}

0 comments on commit 56e5d6b

Please sign in to comment.