iOS: drawbacks of disabling Metal API Validation in order to fix pipeline failed assertion?

隐身守侯 提交于 2019-12-08 07:20:46

问题


Adding a SKEmitterNode to a SceneKit Scene via a SpriteKit overlay generates the following exception:

-[MTLDebugRenderCommandEncoder validateFramebufferWithRenderPipelineState:]:1196: failed assertion `For color attachment 0, the render pipeline's pixelFormat (MTLPixelFormatRGBA8Unorm_sRGB) does not match the framebuffer's pixelFormat (MTLPixelFormatBGR10_XR).'

This exception occurs on an iPhone 7 device, but does not appear in the simulator.

Searching online yielded one valid workaround: disabling Metal API Validation (in Edit Scheme > Options).

What are the drawbacks or gotchas with this workaround?

The obvious benefit is the app now works, but what's the cost?

来源:https://stackoverflow.com/questions/49246043/ios-drawbacks-of-disabling-metal-api-validation-in-order-to-fix-pipeline-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!