Skip to content

Commit

Permalink
Disable multi-stage pipeline on simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
scier committed Aug 14, 2024
1 parent 4cc1d1f commit 292d520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MetalSplatter/Sources/SplatRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ public class SplatRenderer {
resulting in a much more continuous and representative depth value, which is important for reprojection on Vision Pro.
*/
private var useMultiStagePipeline: Bool {
#if targetEnvironment(simulator)
false
#else
writeDepth && highQualityDepth
#endif
}

public var clearColor = MTLClearColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
Expand Down

0 comments on commit 292d520

Please sign in to comment.