I released an iOS app recently, and I'm seeing some crashes where an MTKView's currentRenderPassDescriptor is nil. I never saw these on my devices, but I see some from users, reported in Xcode's Organizer window.
The docs for this property say: This property is nil if the view’s device is not set. Your app should check that both currentRenderPassDescriptor and currentDrawable are not nil before attempting to draw.
I will follow that and skip drawing if it's nil. But, I *am* setting the view's device, so I'm wondering: why is the value nil?
Rob