diff --git a/Sources/GaussianSplatSupport/GaussianSplatAntimatter15RenderView.swift b/Sources/GaussianSplatSupport/GaussianSplatAntimatter15RenderView.swift index 722f734..cb95469 100644 --- a/Sources/GaussianSplatSupport/GaussianSplatAntimatter15RenderView.swift +++ b/Sources/GaussianSplatSupport/GaussianSplatAntimatter15RenderView.swift @@ -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) + } } } @@ -309,3 +309,6 @@ struct CompositeHash : Hashable { } } } + +extension CompositeHash: Sendable where repeat each T: Sendable { +}