<supports-gl-texture>
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หมายเหตุ: Google Play กรองแอปพลิเคชันตาม
เป็นรูปแบบการบีบอัดพื้นผิวที่รองรับ เพื่อให้
พวกเขาจะติดตั้งบนอุปกรณ์
ที่สามารถจัดการพื้นผิวของตนเองเท่านั้น
อย่างเหมาะสม คุณสามารถใช้การกรองการบีบอัดพื้นผิว
เป็นวิธีการกำหนดเป้าหมายประเภทอุปกรณ์ที่เฉพาะเจาะจงตามแพลตฟอร์ม GPU
หากต้องการดูข้อมูลสําคัญเกี่ยวกับวิธี
Google Play ใช้องค์ประกอบ <supports-gl-texture>
เป็น
พื้นฐานสำหรับการกรอง โปรดอ่านคู่มือ
การกรองการเล่นและการบีบอัดพื้นผิว
- ไวยากรณ์:
-
<supports-gl-texture
android:name="string" />
- ที่อยู่ใน:
<manifest>
- description:
- ประกาศรูปแบบการบีบอัดพื้นผิว 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 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
Bionic และอื่นๆ หากแอปพลิเคชันของคุณต้องใช้ตัวแปร 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>
ในไฟล์ Manifest
- รูปแบบการบีบอัดพื้นผิวที่ GPU ในอุปกรณ์รองรับ
อุปกรณ์จะรายงานรูปแบบที่รองรับเป็นพร็อพเพอร์ตี้ระบบแบบอ่านอย่างเดียว
ทุกครั้งที่คุณอัปโหลดแอปพลิเคชัน
ไปยัง Google Play Console
Google Play จะสแกนไฟล์ Manifest ของแอปพลิเคชันและมองหา
องค์ประกอบ <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)"]]