Unity as library crash: Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)
W
William Newell
started a topic
about 2 years ago
Wikitude Professional Edition version: 9.4.0
Not using Extensions or SDK for Smartglasses
Unity 2020.1.13f1
XCode 12.4
On IPhone XS, iOS 14.4, iPhone 11 Pro, iOS 14.4.1
Own project
Unity Packeges:
Wikitude
ARFoundation
Firebase
Unity UI Extensions (Particle System)
ARFoundation, plane detection.
We export the Unity project and then integrate it as library to an existing iOS app project in XCode.
- The application opens in the main view (native)
- Press a buton to load Unity view.
- Loads and crashes:
validateRenderPassDescriptor:702: failed assertion `Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'
We have tried:
- Disabling metal validation
- XCode setting: OpenGL ES instead of metal
- Crashes after loading the scene with wikitude camera (no use of ARFoundation in this scene), after a scene where we check ARFoundation support and camera permission on the device.
Note: the integration was working until two weeks ago.
William Newell
Wikitude Professional Edition version: 9.4.0
Not using Extensions or SDK for Smartglasses
Unity 2020.1.13f1
XCode 12.4
On IPhone XS, iOS 14.4, iPhone 11 Pro, iOS 14.4.1
Own project
Unity Packeges:
validateRenderPassDescriptor:702: failed assertion `Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'