XCode 12 is making debugging application impossible if you have Metal code such as this
viewport.znear(-1) must be between 0.0f and 1.0f
This is not a problem when the app is not connected to debugger. How do I fix this?
Code Block renderEncoder?.setViewport(MTLViewport(originX: 0, originY: 0, width: Double(destWidth), height: Double(destHeight), znear: -1, zfar: 1))
Code Block [MTLDebugRenderCommandEncoder setViewport:]:2667: failed assertion `Viewport Validation
viewport.znear(-1) must be between 0.0f and 1.0f
This is not a problem when the app is not connected to debugger. How do I fix this?