简体   繁体   中英

Is it possible to debug shaders in Android OpenGL ES 2?

Is there a possibility to debug the shaders (fragment and vertex) in an Android Application with OpenGL-ES 2?

Since we only pass a String with code and a bunch of variables to replace with handles, it is very tedious to find the proper changes that need to be done.

  • Is it possible to write to the Android Log, as in Log.d()

  • Is it possible to use break points and to inspect the current values in the shader calculations?

I am simply not used to write code with a pen anymore and that's what it feels like to code within the shader text code.

否。请记住,GPU将执行每个程序数百万次(每个顶点一次,每个片段一次),通常同时运行数百个线程,因此几乎没有“连接调试器”的概念。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM