Just had a frustrating 2 days dealing with a simple scaling matrix.
I’m removing all openGL and GLKit code, so have to migrate all the GLKit code to simd utilities that Metal uses.
I’d grabbed a matrix_scale function in the simd code to replace a AAPLMathUtilities, but it simply did not work how I expected. It took adding debug code to see the matrix values to pick up on the problem.
Many of Apple’s demo projects include AAPLMathUtilities, this has an proper equivalent to AAPLMathUtilities, matrix4x4_scale, which finally solved my issue.
It’s incredibly frustrating to debug, while the Metal debugging stuff is cool in XCode, it just had a blind spot here.
I hate matrix math.
Still, solving this, removed a huge hurdle, I’m not so far away from completing the transition to Metal.