Got a crash when using GPUImageFilter

谁说胖子不能爱 提交于 2019-12-01 14:07:54

The above code tries to create a filter from a custom fragment shader file (in this case, CustomShader.fsh). For this to work, you need to have a file by that name in your project, and need to make sure that it is in the copying resources build phase for your project, not the compiling sources build phase. It also must be a valid fragment shader of the style expected by the project. The MultiViewFilterExample has one of these.

I should note that this is only necessary if you want to create your own custom fragment shader for a filter. As an alternative, you can use one of the 100+ other filters that come with the framework, and avoid this process.

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