{"id":39,"date":"2014-10-16T00:55:50","date_gmt":"2014-10-15T16:55:50","guid":{"rendered":"http:\/\/www.zhuyanbin.com\/?p=39"},"modified":"2016-12-09T23:27:31","modified_gmt":"2016-12-09T15:27:31","slug":"%e5%90%84%e7%a7%8d%e7%a7%bb%e5%8a%a8gpu%e5%8e%8b%e7%bc%a9%e7%ba%b9%e7%90%86%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.yanbin888.com\/?p=39","title":{"rendered":"\u5404\u79cd\u79fb\u52a8GPU\u538b\u7f29\u7eb9\u7406\u7684\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"<p>\u4ecb\u7ecd\u4e86\u5404\u79cd\u79fb\u52a8\u8bbe\u5907\u6240\u4f7f\u7528\u7684GPU\uff0c\u4ee5\u53ca\u5404\u4e2aGPU\u6240\u652f\u6301\u7684\u538b\u7f29\u7eb9\u7406\u7684\u683c\u5f0f\u548c\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<p><strong>1. \u79fb\u52a8GPU\u5927\u5168<\/strong><br \/>\n\u76ee\u524d\u79fb\u52a8\u5e02\u573a\u7684GPU\u4e3b\u8981\u6709\u56db\u5927\u5382\u5546\u7cfb\u5217\uff1a<\/p>\n<p>1\uff09Imagination Technologies\u7684PowerVR SGX\u7cfb\u5217<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-284 alignnone\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/1.jpg\" alt=\"\" width=\"300\" height=\"172\" \/><\/a><\/p>\n<p>\u4ee3\u8868\u578b\u53f7\uff1aPowerVR SGX 535\u3001PowerVR SGX 540\u3001PowerVR SGX 543MP\u3001PowerVR SGX 554MP\u7b49<br \/>\n\u4ee3\u8868\u4f5c\u00a0 \uff1aApple iPhone\u5168\u7cfb\u3001iPad\u5168\u7cfb\uff0c\u4e09\u661fI9000\u3001P3100\u7b49<\/p>\n<p>2\uff09Qualcomm(\u9ad8\u901a)\u7684Adreno\u7cfb\u5217<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-285 alignnone\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/2.jpg\" alt=\"\" width=\"472\" height=\"197\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/2.jpg 472w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/2-300x125.jpg 300w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/a><\/p>\n<p>\u4ee3\u8868\u578b\u53f7\uff1aAdreno 200\u3001Adreno 205\u3001Adreno 220\u3001Adreno 320\u7b49<br \/>\n\u4ee3\u8868\u4f5c\u00a0 \uff1aHTC G10\u3001G14\uff0c\u5c0f\u7c731\u30012\u7b49<\/p>\n<p>3\uff09ARM\u7684Mali\u7cfb\u5217<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-286\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/3.jpg\" alt=\"\" width=\"235\" height=\"111\" \/><\/a><\/p>\n<p>\u4ee3\u8868\u578b\u53f7\uff1aMali-400\u3001Mali-T604\u7b49<br \/>\n\u4ee3\u8868\u4f5c\u00a0 \uff1a\u4e09\u661fGalaxy SII\u3001Galaxy SIII\u3001Galaxy Note1\u3001Galaxy Note2(\u4e9a\u7248)\u7b49<\/p>\n<p>4\uff09nVIDIA(\u82f1\u4f1f\u8fbe)\u7684Tegra\u7cfb\u5217<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-287\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/4.jpg\" alt=\"\" width=\"220\" height=\"212\" \/><\/a><\/p>\n<p>\u4ee3\u8868\u578b\u53f7\uff1anVIDIA Tegra2\u3001nVIDIA Tegra3\u7b49<br \/>\n\u4ee3\u8868\u4f5c\u00a0 \uff1aGoogle Nexus 7\uff0cHTC One X\u7b49<\/p>\n<p><strong>2. \u538b\u7f29\u7eb9\u7406\u7684\u5fc5\u8981\u6027<\/strong><br \/>\n1\uff09\u9996\u5148\u8981\u8bf4\u4e00\u4e0b\u56fe\u50cf\u6587\u4ef6\u683c\u5f0f\u548c\u7eb9\u7406\u683c\u5f0f\u7684\u533a\u522b\u3002<br \/>\n\u5e38\u7528\u7684\u56fe\u50cf\u6587\u4ef6\u683c\u5f0f\u6709BMP\uff0cTGA\uff0cJPG\uff0cGIF\uff0cPNG\u7b49\uff1b<br \/>\n\u5e38\u7528\u7684\u7eb9\u7406\u683c\u5f0f\u6709R5G6B5\uff0cA4R4G4B4\uff0cA1R5G5B5\uff0cR8G8B8, A8R8G8B8\u7b49\u3002<\/p>\n<p>\u6587\u4ef6\u683c\u5f0f\u662f\u56fe\u50cf\u4e3a\u4e86\u5b58\u50a8\u4fe1\u606f\u800c\u4f7f\u7528\u7684\u5bf9\u4fe1\u606f\u7684\u7279\u6b8a\u7f16\u7801\u65b9\u5f0f\uff0c\u5b83\u5b58\u50a8\u5728\u78c1\u76d8\u4e2d\uff0c\u6216\u8005\u5185\u5b58\u4e2d\uff0c\u4f46\u662f\u5e76\u4e0d\u80fd\u88abGPU\u6240\u8bc6\u522b\uff0c\u56e0\u4e3a\u4ee5\u5411\u91cf\u8ba1\u7b97\u89c1\u957f\u7684GPU\u5bf9\u4e8e\u8fd9\u4e9b\u590d\u6742\u7684\u8ba1\u7b97\u65e0\u80fd\u4e3a\u529b\u3002\u8fd9\u4e9b\u6587\u4ef6\u683c\u5f0f\u5f53\u88ab\u6e38\u620f\u8bfb\u5165\u540e\uff0c\u8fd8\u662f\u9700\u8981\u7ecf\u8fc7CPU\u89e3\u538b\u6210R5G6B5\uff0cA4R4G4B4\uff0cA1R5G5B5\uff0cR8G8B8, A8R8G8B8\u7b49\u50cf\u7d20\u683c\u5f0f\uff0c\u518d\u4f20\u9001\u5230GPU\u7aef\u8fdb\u884c\u4f7f\u7528\u3002<br \/>\n\u7eb9\u7406\u683c\u5f0f\u662f\u80fd\u88abGPU\u6240\u8bc6\u522b\u7684\u50cf\u7d20\u683c\u5f0f\uff0c\u80fd\u88ab\u5feb\u901f\u5bfb\u5740\u5e76\u91c7\u6837\u3002<br \/>\n\u4e3e\u4e2a\u4f8b\u5b50\uff0cDDS\u6587\u4ef6\u662f\u6e38\u620f\u5f00\u53d1\u4e2d\u5e38\u7528\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u5b83\u5185\u90e8\u53ef\u4ee5\u5305\u542bA4R4G4B4\u7684\u7eb9\u7406\u683c\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u5305\u542bA8R8G8B8\u7684\u7eb9\u7406\u683c\u5f0f\uff0c\u751a\u81f3\u53ef\u4ee5\u5305\u542bDXT1\u7684\u7eb9\u7406\u683c\u5f0f\u3002\u5728\u8fd9\u91ccDDS\u6587\u4ef6\u6709\u70b9\u5bb9\u5668\u7684\u610f\u5473\u3002<\/p>\n<p>OpenGL ES 2.0\u652f\u6301\u4ee5\u4e0a\u63d0\u5230\u7684R5G6B5\uff0cA4R4G4B4\uff0cA1R5G5B5\uff0cR8G8B8\uff0cA8R8G8B8\u7b49\u7eb9\u7406\u683c\u5f0f\uff0c\u5176\u4e2d R5G6B5\uff0cA4R4G4B4\uff0cA1R5G5B5\u6bcf\u4e2a\u50cf\u7d20\u5360\u75282\u4e2a\u5b57\u8282(BYTE)\uff0cR8G8B8\u6bcf\u4e2a\u50cf\u7d20\u5360\u75283\u4e2a\u5b57\u8282\uff0cA8R8G8B8\u6bcf\u4e2a\u50cf\u7d20\u5360\u7528 4\u4e2a\u5b57\u8282\u3002<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-288\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/5.jpg\" alt=\"\" width=\"540\" height=\"300\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/5.jpg 540w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/5-300x167.jpg 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>\u00a0 \u00a0 \u5bf9\u4e8e\u4e00\u5f20512*512\u7684\u7eb9\u7406\u7684\u8bdd\uff0cR5G6B5\u683c\u5f0f\u7684\u6587\u4ef6\u9700\u8981\u5360\u7528512KB\u7684\u5bb9\u91cf\uff0cA8R8G8B8\u683c\u5f0f\u7684\u6587\u4ef6\u9700\u8981\u5360\u75281MB\u7684\u5bb9\u91cf\uff1b\u5982\u679c\u662f1024*1024\u7684\u7eb9\u7406\uff0c\u5219\u5404\u9700\u89812M\u548c4M\u7684\u5bb9\u91cf\uff0c\u8fd9\u5bf9\u4e8e\u52a8\u8f84\u9700\u8981\u51e0\u5341\u3001\u51e0\u767e\u5f20\u751a\u81f3\u66f4\u591a\u7eb9\u7406\u7684\u6e38\u620f\uff0c\u4e0aG\u5bb9\u91cf\u7684\u6e38\u620f\u5728\u79fb\u52a8\u5e73\u53f0\u4e0a\u662f\u4e0d\u5bb9\u6613\u88ab\u63a5\u53d7\u7684(\u5f53\u7136\uff0c\u8fd8\u662f\u67091\u30012G\u7684\u5927\u4f5c\u7684\uff0c\u91cc\u9762\u5305\u542b\u4e86\u51e0\u5343\u5f20\u7684\u7eb9\u7406)\u3002<\/p>\n<p>\u806a\u660e\u7684\u8bbe\u8ba1\u5e08\u4eec\u5728\u60f3\uff0c\u6709\u6ca1\u6709\u5176\u4ed6\u529e\u6cd5\uff0c\u65e2\u80fd\u8868\u73b0\u4e30\u5bcc\u7684\u8272\u5f69\u548c\u7ec6\u8282\uff0c\u53c8\u80fd\u662f\u6700\u5c0f\u5931\u771f\u7684\u60c5\u51b5\u4e0b\uff0c\u8fbe\u5230\u66f4\u5c0f\u7684\u7eb9\u7406\u5bb9\u91cf\u5462\u3002\u538b\u7f29\u7eb9\u7406\u683c\u5f0f\u5e94\u8fd0\u800c\u751f(\u5f53\u7136\uff0c\u5e76\u4e0d\u662f\u5728\u79fb\u52a8\u5e73\u53f0\u540e\u624d\u6709\u7684\u4ea7\u7269)\u3002<\/p>\n<p><strong>3. \u5e38\u89c1\u7684\u538b\u7f29\u7eb9\u7406\u683c\u5f0f<\/strong><br \/>\n\u57fa\u4e8eOpenGL ES\u7684\u538b\u7f29\u7eb9\u7406\u6709\u5e38\u89c1\u7684\u5982\u4e0b\u51e0\u79cd\u5b9e\u73b0\uff1a<br \/>\n1\uff09ETC1\uff08Ericsson texture compression)<br \/>\n2\uff09PVRTC (PowerVR texture compression)<br \/>\n3\uff09ATITC (ATI texture compression)<br \/>\n4\uff09S3TC (S3 texture compression)<\/p>\n<p>ETC1:<br \/>\nETC1\u683c\u5f0f\u662fOpenGL ES\u56fe\u5f62\u6807\u51c6\u7684\u4e00\u90e8\u5206\uff0c\u5e76\u4e14\u88ab\u6240\u6709\u7684Android\u8bbe\u5907\u6240\u652f\u6301\u3002<br \/>\n\u6269\u5c55\u540d\u4e3a: GL_OES_compressed_ETC1_RGB8_texture\uff0c\u4e0d\u652f\u6301\u900f\u660e\u901a\u9053\uff0c\u6240\u4ee5\u4ec5\u80fd\u7528\u4e8e\u4e0d\u900f\u660e\u7eb9\u7406\u3002<br \/>\n\u5f53\u52a0\u8f7d\u538b\u7f29\u7eb9\u7406\u65f6\uff0c&lt;internal format&gt;\u53c2\u6570\u652f\u6301\u5982\u4e0b\u683c\u5f0f\uff1a<br \/>\nGL_ETC1_RGB8_OES(RGB\uff0c\u6bcf\u4e2a\u50cf\u7d200.5\u4e2a\u5b57\u8282)<\/p>\n<p>PVRTC:<br \/>\n\u652f\u6301\u7684GPU\u4e3aImagination Technologies\u7684PowerVR SGX\u7cfb\u5217\u3002<br \/>\nOpenGL ES\u7684\u6269\u5c55\u540d\u4e3a: GL_IMG_texture_compression_pvrtc\u3002<br \/>\n\u5f53\u52a0\u8f7d\u538b\u7f29\u7eb9\u7406\u65f6\uff0c&lt;internal format&gt;\u53c2\u6570\u652f\u6301\u5982\u4e0b\u51e0\u79cd\u683c\u5f0f\uff1a<br \/>\nGL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG (RGB\uff0c\u6bcf\u4e2a\u50cf\u7d200.5\u4e2a\u5b57\u8282)<br \/>\nGL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG (RGB\uff0c\u6bcf\u4e2a\u50cf\u7d200.25\u4e2a\u5b57\u8282)<br \/>\nGL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d200.5\u4e2a\u5b57\u8282)<br \/>\nGL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d200.25\u4e2a\u5b57\u8282)<\/p>\n<p>ATITC:<br \/>\n\u652f\u6301\u7684GPU\u4e3aQualcomm\u7684Adreno\u7cfb\u5217\u3002<br \/>\n\u652f\u6301\u7684OpenGL ES\u6269\u5c55\u540d\u4e3a: GL_ATI_texture_compression_atitc\u3002<br \/>\n\u5f53\u52a0\u8f7d\u538b\u7f29\u7eb9\u7406\u65f6\uff0c&lt;internal format&gt;\u53c2\u6570\u652f\u6301\u5982\u4e0b\u7c7b\u578b\u7684\u7eb9\u7406\uff1a<br \/>\nGL_ATC_RGB_AMD (RGB\uff0c\u6bcf\u4e2a\u50cf\u7d200.5\u4e2a\u5b57\u8282)<br \/>\nGL_ATC_RGBA_EXPLICIT_ALPHA_AMD (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d201\u4e2a\u5b57\u8282)<br \/>\nGL_ATC_RGBA_INTERPOLATED_ALPHA_AMD (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d201\u4e2a\u5b57\u8282)<\/p>\n<p>S3TC<br \/>\n\u4e5f\u88ab\u79f0\u4e3aDXTC\uff0c\u5728PC\u4e0a\u5e7f\u6cdb\u88ab\u4f7f\u7528\uff0c\u4f46\u662f\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u8fd8\u662f\u5c5e\u4e8e\u65b0\u9c9c\u4e8b\u7269\u3002\u652f\u6301\u7684GPU\u4e3aNVIDIA Tegra\u7cfb\u5217\u3002<br \/>\nOpenGL ES\u6269\u5c55\u540d\u4e3a:<br \/>\nGL_EXT_texture_compression_dxt1\u548cGL_EXT_texture_compression_s3tc\u3002<br \/>\n\u5f53\u52a0\u8f7d\u538b\u7f29\u7eb9\u7406\u65f6\uff0c&lt;internal format&gt;\u7684\u53c2\u6570\u6709\u5982\u4e0b\u51e0\u79cd\u683c\u5f0f\uff1a<br \/>\nGL_COMPRESSED_RGB_S3TC_DXT1 (RGB\uff0c\u6bcf\u4e2a\u50cf\u7d200.5\u4e2a\u5b57\u8282)<br \/>\nGL_COMPRESSED_RGBA_S3TC_DXT1 (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d200.5\u4e2a\u5b57\u8282)<br \/>\nGL_COMPRESSED_RGBA_S3TC_DXT3 (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d201\u4e2a\u5b57\u8282)<br \/>\nGL_COMPRESSED_RGBA_S3TC_DXT5 (RGBA\uff0c\u6bcf\u4e2a\u50cf\u7d201\u4e2a\u5b57\u8282)<\/p>\n<p>\u7531\u6b64\u53ef\u89c1\uff0cMali\u7cfb\u5217GPU\u53ea\u652f\u6301ETC1\u683c\u5f0f\u7684\u538b\u7f29\u7eb9\u7406\uff0c\u800c\u4e14\u8be5\u7eb9\u7406\u4e0d\u652f\u6301\u900f\u660e\u901a\u9053\uff0c\u6709\u4e00\u5b9a\u5c40\u9650\u6027\u3002<br \/>\n\u4ee5\u4e0a\u538b\u7f29\u7eb9\u7406\u683c\u5f0f\u6bcf\u4e2a\u50cf\u7d20\u5927\u5c0f\u76f8\u5bf9A8R8G8B8\u683c\u5f0f\u7684\u6bd4\u4f8b\uff0c\u6700\u9ad8\u538b\u7f29\u6bd4\u662f16:1\uff0c\u6700\u4f4e\u538b\u7f29\u6bd4\u662f4:1\uff0c\u5bf9\u4e8e\u51cf\u5c0f\u7eb9\u7406\u7684\u6570\u636e\u5bb9\u91cf\u6709\u660e\u663e\u4f5c\u7528\uff0c\u76f8\u5e94\u5728\u663e\u5b58\u5e26\u5bbd\u4e0a\u4e5f\u6709\u660e\u663e\u4f18\u52bf\uff0c\u4ece\u800c\u63d0\u9ad8\u6e38\u620f\u7684\u8fd0\u884c\u6548\u7387(\u6b64\u7279\u6027\u6ca1\u6709\u7edd\u5bf9\u6570\u503c\uff0c\u6839\u636e\u6bcf\u4e2a\u6e38\u620f\u7684\u7528\u6cd5\u548c\u74f6\u9888\u70b9\u4e0d\u540c\u800c\u6709\u5dee\u522b)\u3002<\/p>\n<p align=\"left\"><strong>4. OpenGL<\/strong><strong>\u4e2d\u76f8\u5173API\u7684\u4f7f\u7528<\/strong><\/p>\n<p align=\"left\">1\uff09 \u83b7\u5f97GPU\u7684\u578b\u53f7<\/p>\n<p align=\"left\">\u00a0 \u00a0 glGetString(GL_RENDERER)<\/p>\n<p align=\"left\">2\uff09 \u83b7\u5f97GPU\u7684\u751f\u4ea7\u5382\u5546<\/p>\n<p align=\"left\">\u00a0 \u00a0 glGetString(GL_VENDOR);<\/p>\n<p align=\"left\">3\uff09 \u83b7\u53d6GPU\u652f\u6301\u54ea\u4e9b\u538b\u7f29\u7eb9\u7406<\/p>\n<p align=\"left\">\u00a0 \u00a0 string extensions = (const char*)glGetString(GL_EXTENSIONS);<\/p>\n<p align=\"left\">\u00a0 \u00a0 a. \u5224\u65ad\u662f\u5426\u652f\u6301ETC1\u683c\u5f0f\u7684\u538b\u7f29\u7eb9\u7406<\/p>\n<p align=\"left\">\u00a0 \u00a0 return (extensions.find(&#8220;GL_OES_compressed_ETC1_RGB8_texture&#8221;)!= string::npos);<\/p>\n<p align=\"left\">\u00a0 \u00a0 b. \u5224\u65ad\u662f\u5426\u652f\u6301DXT\u683c\u5f0f\u7684\u538b\u7f29\u7eb9\u7406<\/p>\n<p align=\"left\">\u00a0 \u00a0 return (extensions.find(&#8220;GL_EXT_texture_compression_dxt1&#8221;)!= string::npos ||<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0extensions.find(&#8220;GL_EXT_texture_compression_s3tc&#8221;)!= string::npos);<\/p>\n<p align=\"left\">\u00a0 \u00a0 c. \u5224\u65ad\u662f\u5426\u652f\u6301PVRTC\u683c\u5f0f\u7684\u538b\u7f29\u7eb9\u7406<\/p>\n<p align=\"left\">\u00a0 \u00a0 return (extensions.find(&#8220;GL_IMG_texture_compression_pvrtc&#8221;)!= string::npos);<\/p>\n<p align=\"left\">\u00a0 \u00a0 d. \u5224\u65ad\u662f\u5426\u652f\u6301ATITC\u683c\u5f0f\u7684\u538b\u7f29\u7eb9\u7406<\/p>\n<p align=\"left\">\u00a0 \u00a0 return (extensions.find(&#8220;GL_AMD_compressed_ATC_texture&#8221;)!= string::npos ||<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0extensions.find(&#8220;GL_ATI_texture_compression_atitc&#8221;)!= string::npos);<\/p>\n<p align=\"left\">4\uff09 \u586b\u5145\u538b\u7f29\u7eb9\u7406\u6570\u636e<\/p>\n<p align=\"left\">\u00a0 \u00a0 void glCompressedTexImage2D (<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLenum target,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLint level,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLenum internalformat,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLsizei width,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLsizei height,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLint border,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0GLsizei imageSize,<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0const GLvoid * data);<\/p>\n<p align=\"left\">\u00a0 \u00a0 \u8fd9\u91cc\u7684\u53c2\u6570\u4e0d\u505a\u8be6\u7ec6\u89e3\u91ca\uff0c\u5176\u4e2dinternalformat\u5373\u662f\u538b\u7f29\u7eb9\u7406\u683c\u5f0f\u7684\u7c7b\u578b\u3002<\/p>\n<p><strong>5. \u538b\u7f29\u7eb9\u7406\u5de5\u5177\u7684\u4f7f\u7528<\/strong><br \/>\n\u6bcf\u79cd\u538b\u7f29\u7eb9\u7406\u4ee5\u53ca\u76f8\u5e94\u7684\u5382\u5546\u90fd\u63d0\u4f9b\u4e86\u538b\u7f29\u7eb9\u7406\u7684\u5de5\u5177\uff0c\u5de5\u5177\u90fd\u5206\u4e24\u4e2a\u7248\u672c\uff1a<br \/>\na. \u53ef\u89c6\u5316\u8f6c\u6362\u5de5\u5177 (\u7ed9\u7f8e\u5de5\u6216\u5c0f\u767d\u5c11\u91cf\u4f7f\u7528)<br \/>\nb. \u547d\u4ee4\u884c\u8f6c\u6362\u5de5\u5177 (\u7ed9\u7a0b\u5e8f\u6279\u91cf\u4f7f\u7528)<\/p>\n<p>\u4e0b\u9762\u5bf9\u6bcf\u4e2a\u5de5\u5177\u7684\u7528\u6cd5\u8fdb\u884c\u8bf4\u660e\u3002<br \/>\n1\uff09Imagination Technologies PowerVR<br \/>\n\u5de5\u5177\u4e0b\u8f7d\u5730\u5740<br \/>\n<a href=\"http:\/\/www.imgtec.com\/powervr\/insider\/sdkdownloads\/index.asp?installer=Windows%20Installer\" target=\"_blank\">http:\/\/www.imgtec.com\/powervr\/insider\/sdkdownloads\/index.asp?installer=Windows%20Installer<\/a><\/p>\n<p>\u53ef\u89c6\u5316\u8f6c\u6362\u754c\u9762<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-289\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/6.jpg\" alt=\"\" width=\"586\" height=\"458\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/6.jpg 816w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/6-300x235.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/6-768x600.jpg 768w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/a><\/p>\n<p>\u547d\u4ee4\u884c\u8f6c\u6362\u811a\u672c<br \/>\nfor %%i in (*.tga) do PVRTexTool.exe -f PVRTC4 -i %%i<br \/>\n(\u5c06\u672c\u76ee\u5f55\u4e0b\u7684\u6240\u6709tga\u6587\u4ef6\uff0c\u8f6c\u6362\u6210&#8221;PVRTC4&#8243;\u7f16\u7801\u683c\u5f0f\u7684pvr\u6587\u4ef6\uff0c\u4e0d\u5e26mipmap)<br \/>\n\u8be6\u7ec6\u4f7f\u7528\u8bf4\u660e\uff1aPvrTexTool.exe \/?<\/p>\n<p>2\uff09Qualcomm Adreno<br \/>\n\u5de5\u5177\u4e0b\u8f7d\u5730\u5740<br \/>\n<a href=\"https:\/\/developer.qualcomm.com\/mobile-development\/mobile-technologies\/gaming-graphics-optimization-adreno\/tools-and-resources\" target=\"_blank\">https:\/\/developer.qualcomm.com\/mobile-development\/mobile-technologies\/gaming-graphics-optimization-adreno\/tools-and-resources<\/a><\/p>\n<p>\u53ef\u89c6\u5316\u8f6c\u6362\u754c\u9762<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-290\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/7.jpg\" alt=\"\" width=\"608\" height=\"416\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/7.jpg 1048w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/7-300x205.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/7-768x525.jpg 768w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/7-1024x701.jpg 1024w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a><\/p>\n<p>\u547d\u4ee4\u884c\u8f6c\u6362\u811a\u672c<br \/>\nfor %%i in (*.tga) do QCompressCmd.exe %%i %%i.ktx &#8220;ATC RGBA Explicit&#8221; yes<br \/>\n(\u5c06\u672c\u76ee\u5f55\u4e0b\u7684\u6240\u6709tga\u6587\u4ef6\uff0c\u8f6c\u6362\u6210&#8221;ATC RGBA Explicit&#8221;\u7f16\u7801\u683c\u5f0f\u7684ktx\u6587\u4ef6\uff0c\u5e26mipmap)<br \/>\n\u8be6\u7ec6\u4f7f\u7528\u8bf4\u660e\uff1aQCompressCmd.exe \/?<\/p>\n<p>3\uff09ARM Mali<br \/>\n\u5de5\u5177\u4e0b\u8f7d\u5730\u5740<br \/>\n<a href=\"http:\/\/malideveloper.arm.com\/develop-for-mali\/mali-gpu-texture-compression-tool\/\" target=\"_blank\">http:\/\/malideveloper.arm.com\/develop-for-mali\/mali-gpu-texture-compression-tool\/<\/a><\/p>\n<p>\u53ef\u89c6\u5316\u8f6c\u6362\u754c\u9762<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-291\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/8.jpg\" alt=\"\" width=\"601\" height=\"475\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/8.jpg 974w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/8-300x237.jpg 300w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/8-768x607.jpg 768w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p>\u547d\u4ee4\u884c\u8f6c\u6362\u811a\u672c<br \/>\nfor %%i in (*.tga) do PVRTexTool.exe -f ETC -i %%i<br \/>\n(\u5c06\u672c\u76ee\u5f55\u4e0b\u7684\u6240\u6709tga\u6587\u4ef6\uff0c\u8f6c\u6362\u6210&#8221;ETC&#8221;\u7f16\u7801\u683c\u5f0f\u7684pvr\u6587\u4ef6\uff0c\u4e0d\u5e26mipmap\u8fd9\u91cc\u8fd8\u662f\u4f7f\u7528\u7684PVRTexTool.exe\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528QCompressCmd.exe)<br \/>\n\u8be6\u7ec6\u4f7f\u7528\u8bf4\u660e\uff1aPVRTexTool.exe \/?<\/p>\n<p>4\uff09nVIDIA Tegra<br \/>\n\u53ef\u4ee5\u4f7f\u7528DirectX SDK\u4e2d\u81ea\u5e26\u7684DirectX Texture Tool\u8fdb\u884c\u8f6c\u6362<br \/>\n\u53ef\u89c6\u5316\u8f6c\u6362\u754c\u9762<\/p>\n<p align=\"left\">\u00a0 \u00a0\u00a0<a href=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/9.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-292\" src=\"https:\/\/www.zhuyanbin.com\/wp-content\/uploads\/2014\/10\/9.jpg\" alt=\"\" width=\"600\" height=\"484\" srcset=\"https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/9.jpg 734w, https:\/\/www.yanbin888.com\/wp-content\/uploads\/2014\/10\/9-300x242.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u547d\u4ee4\u884c\u8f6c\u6362\u811a\u672c<br \/>\nfor %%i in (*.tga) do texconv.exe -f DXT5 %%i<br \/>\n(\u5c06\u672c\u76ee\u5f55\u4e0b\u7684\u6240\u6709tga\u6587\u4ef6\uff0c\u8f6c\u6362\u6210&#8221;DXT5&#8243;\u7f16\u7801\u683c\u5f0f\u7684dds\u6587\u4ef6\uff0c\u4e0d\u5e26mipmap)<br \/>\n\u8be6\u7ec6\u4f7f\u7528\u8bf4\u660e\uff1aTexConv.exe \/?<\/p>\n<p>\u8f6c\u8f7d\u81ea:\u00a0http:\/\/www.cnblogs.com\/luming1979\/archive\/2013\/02\/04\/2891421.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd\u4e86\u5404\u79cd\u79fb\u52a8\u8bbe\u5907\u6240\u4f7f\u7528\u7684GPU\uff0c\u4ee5\u53ca\u5404\u4e2aGPU\u6240\u652f\u6301\u7684\u538b\u7f29\u7eb9\u7406\u7684\u683c\u5f0f\u548c\u4f7f\u7528\u65b9\u6cd5\u3002 1. \u79fb\u52a8GPU\u5927\u5168 \u76ee\u524d <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/www.yanbin888.com\/?p=39\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39"}],"version-history":[{"count":3,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yanbin888.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}