Failed to render objects in Xcode 15

Hello everyone,

It’s been a while since I last committed to my metal demo project due to my workload and moving to another country. However, I’m excited to be back and working on Metal!

I have a question regarding the configuration needed for working on Xcode 15. Currently, I am unable to see my objects rendering when I run my project on Xcode 15 with macOS Sonoma (Intel). However, when I run the project with Xcode 14 on macOS Ventura (M1 Pro), the objects seem to render properly.

I tried investigating the problem using ‘Capture GPU Workload’, but my MetalKit knowledge is a bit rusty and I couldn’t find any clue about it.

I would really appreciate it if you could provide more information about the transition, or if you could check my project on GitHub for a deep investigation.

Thank you very much in advance.

Regards,
Tolga Haliloglu

The initialisation of simd_quatf has changed.

In Node.swift, change

var quaternion = simd_quatf()

To:

var quaternion = simd_quatf(.identity())

P.S. I’m glad you’re back and working in Metal :slightly_smiling_face:!

Edit:

For people seeing this post who are using the third edition of Metal by Tutorials, the change must be made in Transform.swift where you initialise Transform.

The change for these people is:

var quaternion = simd_quatf(.identity)

1 Like

Thank you very much. It helped me a lot :pray:

1 Like