<supports-gl-texture>
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הערה: מערכת Google Play מסננת אפליקציות בהתאם
לפורמטים של דחיסת נתוני הטקסטורה שבהם הם תומכים,
הם מתקינים רק במכשירים שיכולים לטפל במרקמים שלהם
כראוי. אפשר להשתמש בסינון באמצעות דחיסת נתוני הטקסטורה
כדרך לטרגט סוגים ספציפיים של מכשירים על סמך פלטפורמת ה-GPU.
לקבלת מידע חשוב על האופן שבו
ב-Google Play נעשה שימוש באלמנטים מסוג <supports-gl-texture>
בתור
הבסיס לסינון, קראו את
סינון של דחיסה של נתוני הפעלה וטקסטורה.
- תחביר:
-
<supports-gl-texture
android:name="string" />
- בתוך:
<manifest>
- תיאור:
- מצהירה על פורמט דחיסה אחד של טקסטורת GL שהאפליקציה תומכת בו.
אפליקציה ש"תומכת" פורמט דחיסה של טקסטורת GL, אם הוא מאפשר
מספקים נכסי טקסטורה שנדחסו בפורמט הזה כשהאפליקציה מותקנת במכשיר.
האפליקציה מספקת את הפרטים הבאים:
נכסים דחוסים באופן מקומי, מתוך ה-APK, או שניתן להוריד אותם
משרת בזמן ריצה.
כל רכיב <supports-gl-texture>
מצהיר על רכיב אחד בלבד
נתמך בפורמט דחיסת טקסטורה, שמצוין כערך של
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 וזמין בכל המכשירים
מכשירים מבוססי Android שתומכים ב-OpenGL ES 2.0. |
GL_OES_compressed_paletted_texture |
דחיסה כללית של טקסטורה צבעונית. |
GL_AMD_compressed_3DC_texture |
דחיסת טקסטורה ATI 3Dc. |
GL_AMD_compressed_ATC_texture |
דחיסת טקסטורה ATI. זמין במכשירים עם GPU של Adreno, כולל
HTC Nexus One , Droid Incredible , EVO ואחרים. לתאימות הרחבה ביותר,
מכשירים יכולים גם להצהיר על רכיב <supports-gl-texture> עם
מתאר GL_ATI_texture_compression_atitc . |
GL_EXT_texture_compression_latc |
דחיסה של טקסטורת אלפא של הבהירות. |
GL_EXT_texture_compression_dxt1 |
דחיסת טקסטורה S3 DXT1. נתמך במכשירים עם Nvidia Tegra2
כולל Motorala Xoom, Motorola Atrix, Droid Bionic ו-
אחרים. |
GL_EXT_texture_compression_s3tc |
דחיסת טקסטורה S3, לא ספציפית לווריאנט DXT. נתמך במכשירים
הפעלת פלטפורמת Nvidia Tegra2, כולל Motorala Xoom, Motorola Atrix, Droid
ביולוגית ועוד. אם באפליקציה שלך דרושה וריאנט ספציפי של DXT, עליך להצהיר
שמתאר זה במקום זה. |
GL_IMG_texture_compression_pvrtc |
דחיסת טקסטורה של PowerVR. זמין במכשירים שבהם פועל PowerVR SGX530/540
GPU, כמו סדרת Motorola DROID, Samsung Galaxy S , Nexus S ו-Galaxy Tab;
ועוד. |
- למידע נוסף:
-
סינון של דחיסת נתוני טקסטורה ב-Google Play
Google Play מסננת את האפליקציות שגלויות למשתמשים, כדי
משתמשים יכולים לראות ולהוריד רק את האפליקציות שתואמות ל-
במכשירים שלהם. אחת הדרכים שבהן הוא מסנן אפליקציות היא לפי טקסטורה
תאימות לדחיסה, נותנת לך שליטה על הזמינות של
למכשירים שונים בהתאם ליכולות של ה-GPU שלהם.
כדי לקבוע את תאימות הדחיסה של טקסטורה אפליקציה מסוימת
במכשיר של המשתמש, Google Play משווה בין הנתונים הבאים:
- פורמטים של דחיסת נתוני טקסט שנתמכים על ידי האפליקציה, כפי שהוצהר ב-
רכיבי
<supports-gl-texture>
במניפסט.
- פורמטים לדחיסת נתוני טקסט שנתמכים על ידי ה-GPU במכשיר.
מכשיר מדווח על הפורמטים שבהם הוא תומך כמאפייני מערכת לקריאה בלבד.
בכל פעם שאתם מעלים אפליקציה ל-Google Play Console,
Google Play סורקת את קובץ המניפסט של האפליקציה ומחפשת
רכיבי <supports-gl-texture>
. הוא מחלץ את
של מתארי פורמט מהרכיבים ושומר אותם באופן פנימי
מטא-נתונים שמשויכים ל-APK של האפליקציה ולאפליקציה
.
כשמשתמש מחפש אפליקציות ב-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)"]]