Hello, in some point on my code, I have the value
...
let puckcoords: SIMD3<Float>
if let puck = puck {
puckcoords = [Float(puck.x), Float(puck.y), Float(puck.z)]
} else {
puckcoords = [0, 0, 0]
}
puckcoords: SIMD3(-nan, -nan, -nan)
And then this value pass to Metal API, and then Metal catapulted. I don't know why it happens, I just want to install the guard statement in the middle of this function to prevent pass this value to Metal. How to check SIMD3 if it contains the nan?