【问题标题】:<supports-gl-texture> Attributes<supports-gl-texture> 属性
【发布时间】:2016-04-01 22:01:45
【问题描述】:

您好 Stackoverflow 用户。

我目前正在构建一个艺术性很强的安卓游戏。 我想构建多个具有不同纹理压缩的 apk,因此我的应用有很多设备支持。

我目前想使用 ETC2 纹理压缩和 PVRTC 纹理压缩。

我查看了 android 开发者文档并找到了这个列表。 我在这个中没有看到 ETC2,它存在还是我需要使用另一种纹理压缩?

支持-gl-texture 属性。

 1. GL_OES_compressed_ETC1_RGB8_texture
 2. GL_OES_compressed_paletted_texture
 3. GL_AMD_compressed_3DC_texture
 4. GL_AMD_compressed_ATC_texture
 5. GL_EXT_texture_compression_latc
 6. GL_EXT_texture_compression_dxt1
 7. GL_EXT_texture_compression_s3tc
 8. GL_IMG_texture_compression_pvrtc

注意事项:

Unity 构建。

纹理压缩:PVRCT、ETC2。

安卓

【问题讨论】:

    标签: android opengl-es


    【解决方案1】:

    抱歉,这是一个愚蠢的问题。

    对于任何搜索此内容的人。

    GL_OES_compressed_ETC2_RGB8_texture

    【讨论】:

    • 这是谷歌官方支持的吗?我想在我的应用程序中使用它,但official documentation 仍然没有指定GL_OES_compressed_ETC2_RGB8_texture。目前我们的解决方法是检查supportedGlVersion 是否为0x00030000,因为所有支持 OpenGL ES 3 的 Android 设备都支持 ETC2。
    猜你喜欢
    • 1970-01-01
    • 2020-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多