【问题标题】:Android Opengl ES 3.0 Pixel Buffer Object And glReadPixelAndroid Opengl ES 3.0 像素缓冲区对象和 glReadPixel
【发布时间】:2016-12-01 03:49:49
【问题描述】:

我想使用 PBO(适用于 Android 4.3+)来提高 glReadPixels() 性能,因为我的测试设备中的每一帧 glReadPixels 大约需要 30~50ms(1280*960)。但我不能直接在 Java 中使用 glReadPixels ,因为最后一个参数不能为零或“null”。我也尝试使用 here 中提到的 ndk。但是最后一个参数必须是 (void*) 在我的 ndk 的 GLES3/gl3.h 中。所以问题是如何使用 glReadPixels 使 PBO 工作?这是提高性能的正确解决方案吗?

【问题讨论】:

    标签: android glreadpixels opengl-es-3.0 pbo


    【解决方案1】:

    您需要在您的 c++ 代码中将最后一个参数从 int 显式转换为 void*。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-10-19
      • 2011-12-30
      • 1970-01-01
      • 2017-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-01
      相关资源
      最近更新 更多