コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
注: Google Play は、サポート対象のテクスチャ圧縮形式を基準にアプリをフィルタし、テクスチャを適切に処理できるデバイスに限りインストールされるようにしています。テクスチャ圧縮フィルタリングは、GPU プラットフォームに基づいて特定のデバイスタイプをターゲットとする方法として使用できます。
Google Play が <supports-gl-texture>
要素をフィルタリングのベースとして使用する方法については、Google Play とテクスチャ圧縮フィルタリングのセクションをご覧ください。
- 構文:
-
<supports-gl-texture
android:name="string" />
- 上位の要素:
<manifest>
- 説明:
- アプリがサポートする単一の GL テクスチャ圧縮形式を宣言します。
アプリが GL テクスチャ圧縮形式を「サポート」しているということは、アプリがデバイスにインストールされるとき、対象の形式で圧縮されているテクスチャ アセットを提供できることを意味します。
アプリは、圧縮アセットを APK の内部からローカルで提供することも、実行時にサーバーからダウンロードすることもできます。
各 <supports-gl-texture>
要素は、サポート対象のテクスチャ圧縮形式を 1 つだけ宣言し、android:name
属性の値として指定します。アプリが複数のテクスチャ圧縮形式をサポートしている場合は、複数の <supports-gl-texture>
要素を宣言できます。
<supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture" />
<supports-gl-texture android:name="GL_OES_compressed_paletted_texture" />
<supports-gl-texture>
要素は情報提供用であり、Android システム自体は、インストール時に要素を検証せず、デバイス上でのサポートと合致しているか確認しません。
しかし、他のサービス(Google Play など)またはアプリは、インストール対象のアプリの処理や操作の一環として、そのアプリの <supports-gl-texture>
宣言をチェックできます。そのため、アプリがサポートしているテクスチャ圧縮形式(下のリストに記載)をすべて宣言することが非常に重要です。
アプリとデバイスは通常、下に記載されている既知の文字列セットを使用して、サポートする GL テクスチャ圧縮形式を宣言します。圧縮形式の文字列セットは、時間の経過とともに必要に応じて増えていく可能性があります。値は文字列であるため、アプリは必要に応じて他の圧縮形式を自由に宣言できます。
アプリが SDK Platform Tools r3 以降でビルドされている場合、<supports-gl-texture>
要素に基づくフィルタリングは、すべての API レベルで有効になります。
- 属性:
-
android:name
- アプリがサポートする単一の GL テクスチャ圧縮形式を、記述子文字列として指定します。一般的な記述子の値は下表のとおりです。
テクスチャ圧縮形式記述子 |
コメント |
GL_OES_compressed_ETC1_RGB8_texture |
Ericsson テクスチャ圧縮。OpenGL ES 2.0 内で指定されており、OpenGL ES 2.0 をサポートするすべての Android デバイスで利用できます。 |
GL_OES_compressed_paletted_texture |
汎用パレット テクスチャ圧縮。 |
GL_AMD_compressed_3DC_texture |
ATI 3Dc テクスチャ圧縮。 |
GL_AMD_compressed_ATC_texture |
ATI テクスチャ圧縮。HTC Nexus One、Droid Incredible、EVO など、Adreno GPU 搭載デバイスで利用できます。最大限の互換性を確保するため、デバイスは、GL_ATI_texture_compression_atitc 記述子を使用して <supports-gl-texture> 要素を宣言していることもあります。 |
GL_EXT_texture_compression_latc |
輝度アルファ テクスチャ圧縮。 |
GL_EXT_texture_compression_dxt1 |
S3 DXT1 テクスチャ圧縮。Motorala Xoom、Motorola Atrix、Droid Bionic など、NVIDIA Tegra2 プラットフォーム搭載デバイスでサポートされます。 |
GL_EXT_texture_compression_s3tc |
S3 テクスチャ圧縮。DXT バリアント固有の形式ではありません。Motorala Xoom、Motorola Atrix、Droid Bionic など、NVIDIA Tegra2 プラットフォーム搭載デバイスでサポートされます。アプリが特定の DXT バリアントを必要とする場合は、この記述子ではなく、対象の記述子を宣言します。 |
GL_IMG_texture_compression_pvrtc |
PowerVR テクスチャ圧縮。Motorola DROID シリーズ、Samsung Galaxy S、Nexus S、Galaxy Tab など、PowerVR SGX530 / 540 GPU 搭載デバイスで利用できます。 |
- 関連項目:
-
Google Play とテクスチャ圧縮フィルタリング
Google Play は、ユーザーに表示するアプリをフィルタします。これにより、ユーザーは、自分のデバイスと互換性があるアプリのみを表示してダウンロードすることができます。アプリをフィルタリングする際、テクスチャ圧縮の適合性も 1 つの基準となります。これにより、さまざまなデバイスに対してアプリを利用可能にするかどうかを、GPU の機能に基づいて制御することができます。
ユーザーのデバイスがアプリのテクスチャ圧縮に対応しているかどうかを判断する際、Google Play は以下の 2 つを比較します。
- アプリがサポートしているテクスチャ圧縮形式。マニフェスト内の
<supports-gl-texture>
要素で宣言します。
- デバイスの GPU がサポートしているテクスチャ圧縮形式。デバイスは、サポート対象の形式を読み取り専用システム プロパティとしてレポートします。
デベロッパーが Google Play Console にアプリをアップロードするたびに、Google Play は、アプリのマニフェスト ファイルをスキャンして、<supports-gl-texture>
要素を検索します。その要素から形式記述子を抽出して、それをアプリの APK とアプリ バージョンに関連付けられたメタデータとして内部に格納します。
ユーザーが Google Play 上でアプリの検索や閲覧を行うと、Google Play は、アプリがサポートしているテクスチャ圧縮形式と、ユーザーのデバイスがサポートしている形式を比較します。この比較は、形式記述子文字列に基づいて行われ、完全一致する必要があります。
アプリがサポートしているテクスチャ圧縮形式のいずれかが、デバイスでもサポートされていた場合、Google Play は、ユーザーに対してアプリの表示やダウンロードを許可します。アプリのサポート対象形式をデバイスがいずれもサポートしていなかった場合、Google Play は、アプリをフィルタしてダウンロードできないようにします。
アプリが <supports-gl-texture>
要素を宣言していなかった場合、Google Play は、GL テクスチャ圧縮形式に基づくフィルタリングを適用しません。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# <supports-gl-texture\u003e\n\n**Note:**Google Play filters applications according\nto the texture compression formats that they support so that\nthey install only on devices that can handle their textures\nproperly. You can use texture compression filtering\nas a way of targeting specific device types based on the GPU platform.\n\nFor important information about how\nGoogle Play uses `\u003csupports-gl-texture\u003e` elements as\nthe basis for filtering, read the [Google\nPlay and texture compression filtering](#market-texture-filtering) section.\n\nsyntax:\n:\n\n ```xml\n \u003csupports-gl-texture\n android:name=\"string\" /\u003e\n ```\n\ncontained in:\n: [\u003cmanifest\u003e](/guide/topics/manifest/manifest-element)\n\ndescription:\n\n: Declares a single GL texture compression format that the app supports. An application \"supports\" a GL texture compression format if it can\n provide texture assets compressed in that format when the application installs on a device.\n\n The application provides the\n compressed assets locally, from inside the APK, or it can download them\n from a server at runtime.\n\n Each `\u003csupports-gl-texture\u003e` element declares exactly one\n supported texture compression format, specified as the value of a\n `android:name` attribute. If your application supports multiple\n texture compression formats, you can declare multiple\n `\u003csupports-gl-texture\u003e` elements: \n\n ```xml\n \u003csupports-gl-texture android:name=\"GL_OES_compressed_ETC1_RGB8_texture\" /\u003e\n \u003csupports-gl-texture android:name=\"GL_OES_compressed_paletted_texture\" /\u003e\n ```\n\n `\u003csupports-gl-texture\u003e` elements are informational,\n meaning that the Android system itself does not examine the elements at install\n time to ensure matching support on the device.\n\n However, other services,\n such as Google Play, or applications can check your application's\n `\u003csupports-gl-texture\u003e` declarations as part of handling or\n interacting with your application. For this reason, it's very important that\n you declare all the texture compression formats from the following list that\n your application supports.\n\n Applications and devices typically declare their supported GL texture\n compression formats using the following set of well-known strings.\n The set of format strings might grow over time, as needed. Since the values\n are strings, applications are free to declare other formats as needed.\n\n Assuming that the application is built with SDK Platform Tools r3 or higher,\n filtering based on the `\u003csupports-gl-texture\u003e` element is activated\n for all API levels.\n\nattributes:\n:\n\n `android:name`\n : Specifies a single GL texture compression format supported by the application\n as a descriptor string. Common descriptor values are listed in the following table.\n\n | Texture compression format descriptor | Comments |\n |---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | `GL_OES_compressed_ETC1_RGB8_texture` | Ericsson texture compression. Specified in OpenGL ES 2.0 and available in all Android-powered devices that support OpenGL ES 2.0. |\n | `GL_OES_compressed_paletted_texture` | Generic paletted texture compression. |\n | `GL_AMD_compressed_3DC_texture` | ATI 3Dc texture compression. |\n | `GL_AMD_compressed_ATC_texture` | ATI texture compression. Available on devices running Adreno GPU, including HTC Nexus One, Droid Incredible, EVO, and others. For widest compatibility, devices may also declare a `\u003csupports-gl-texture\u003e` element with the descriptor `GL_ATI_texture_compression_atitc`. |\n | `GL_EXT_texture_compression_latc` | Luminance alpha texture compression. |\n | `GL_EXT_texture_compression_dxt1` | S3 DXT1 texture compression. Supported on devices running the Nvidia Tegra2 platform, including Motorala Xoom, Motorola Atrix, Droid Bionic, and others. |\n | `GL_EXT_texture_compression_s3tc` | S3 texture compression, nonspecific to DXT variant. Supported on devices running the Nvidia Tegra2 platform, including Motorala Xoom, Motorola Atrix, Droid Bionic, and others. If your application requires a specific DXT variant, declare that descriptor instead of this one. |\n | `GL_IMG_texture_compression_pvrtc` | PowerVR texture compression. Available on devices running the PowerVR SGX530/540 GPU, such as Motorola DROID series; Samsung Galaxy S, Nexus S, and Galaxy Tab; and others. |\n\n\nsee also:\n:\n - [Filters on Google Play](/google/play/filters)"]]