My raytracing Metal app that works great with the M1 laptop throws the above error when attempting to set the MTLInstanceAccelerationStructure on a MTLComputeCommandEncoder with the new AppleTV (A15 GPU). I haven't tried this on previous AppleTV devices and simulator doesn't support raytracing.
Has anyone successfully raytraced on the new AppleTV?
Error:
checkAccelerationStructure:62: failed assertion `Acceleration structure is associated with a different device'
tvOS 16.1
Apple TV 4K (3rd generation)