Unity 4.7 导出工程在XCode9/10上报错 validateRenderPassDescriptor:644: failed assertion `XXXX'

Unity 4.7 导出工程在XCode9/10上报错 validateRenderPassDescriptor:644: failed assertion `Texture at colorAttachment[0] has usage (0x01) which doesn't specify MTLTextureUsageRenderTarget (0x04)'
报错发生时线程栈帧如下,发生在与Metal GPU图形渲染相关部分。
image

两种办法解决
1) Product -> Scheme -> Edit Scheme -> Run -> Options -> GPU Frame Capture -> OpenGL ES
image


2) Unity Other Setting -> Auto Graphics API 取消勾 –> OpenGLES2
image

Ref: https://blog.csdn.net/devday/article/details/79108873

posted @ 2019-02-27 16:11  opencoder  阅读(791)  评论(0编辑  收藏  举报