{"id":1894,"date":"2020-05-14T15:36:30","date_gmt":"2020-05-14T07:36:30","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1894"},"modified":"2020-09-27T11:22:52","modified_gmt":"2020-09-27T03:22:52","slug":"unity%e6%95%b0%e6%8d%ae%e7%9a%84%e7%b2%be%e5%ba%a6%e3%80%81%e7%a1%ac%e4%bb%b6%e6%94%af%e6%8c%81%e3%80%81%e4%bb%a5%e5%8f%8a%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1894","title":{"rendered":"[Unity]\u6570\u636e\u7684\u7cbe\u5ea6\u3001\u786c\u4ef6\u652f\u6301\u3001\u4ee5\u53ca\u6027\u80fd"},"content":{"rendered":"\n<p><strong>\u5728PC\u5e73\u53f0-Windows\/Mac\/Linux\u4e0a\uff0chalf,half,float \u4e00\u5f8b\u8fd9\u89c6\u4e3a32-bit float\u7cbe\u5ea6\u3002half\u548cfixed\u53ea\u5728\u79fb\u52a8\u5e73\u53f0GPU\u4e0a\u6709\u533a\u522b<\/strong>\uff1b<\/p>\n\n\n\n<p>\u6700\u597d\u5728\u771f\u673a\u4e0a\u5b9e\u6d4b\u4e0d\u540c\u7cbe\u5ea6\u7684\u8868\u73b0\uff0c\u9632\u6b62\u51fa\u73b0\u95ee\u9898<\/p>\n\n\n\n<p>\u5728\u79fb\u52a8\u5e73\u53f0\u4e0a\uff0c\u4e0d\u540c\u578b\u53f7\u7684GPU\u5904\u7406\u540c\u7c7b\u578b\u7684\u6570\u636e\uff0c\u7cbe\u5ea6\u4e5f\u662f\u4e0d\u540c\u7684\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>GPU Family<\/th><th>float<\/th><th>half<\/th><th>fixed<\/th><\/tr><\/thead><tbody><tr><td>PowerVR Series 6\/7<\/td><td>32<\/td><td>16<\/td><\/tr><tr><td>PowerVR SGX 5xx<\/td><td>32<\/td><td>16<\/td><td>11<\/td><\/tr><tr><td>Qualcomm Adreno 4xx\/3xx<\/td><td>32<\/td><td>16<\/td><\/tr><tr><td>Qualcomm Adreno 2xx<\/td><td>32 vertex 24 fragment<\/td><\/tr><tr><td>ARM Mali T6xx\/7xx<\/td><td>32<\/td><td>16<\/td><\/tr><tr><td>ARM Mali 400\/450<\/td><td>32 vertex 16 fragment<\/td><\/tr><tr><td>NVIDIA X1<\/td><td>32<\/td><td>16<\/td><\/tr><tr><td>NVIDIA K1<\/td><td>32<\/td><\/tr><tr><td>NVIDIA Tegra 3\/4<\/td><td>32<\/td><td>16<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p> \u5927\u591a\u6570\u79fb\u52a8GPU\u4ec5\u652f\u630132\u4f4d\u6570\u5b57\uff08\u7528\u4e8efloat\uff09\u621616\u4f4d\u6570\u5b57\uff08\u7528\u4e8ehalf\/fixed\uff09\u3002\u4e00\u4e9b\u8f83\u65e7\u7684GPU\u5177\u6709\u4e0d\u540c\u7684\u7cbe\u5ea6\u5728VS\u548cPS\u4e2d\u3002<\/p>\n\n\n\n<p> \u4f7f\u7528\u4f4e\u7cbe\u5ea6\u7684\u6570\u636e\u901a\u5e38\u4f1a\u66f4\u5feb\uff0c\u7531\u4e8e\u6539\u5584\u4e86GPU\u5bc4\u5b58\u5668\u5206\u914d\uff0c\u4ee5\u53ca\u67d0\u4e9b\u4f4e\u7cbe\u5ea6\u6570\u5b66\u8fd0\u7b97\u5177\u6709\u7279\u6b8a\u7684\u201c\u5feb\u901f\u8def\u5f84\u201d\u6267\u884c\u5355\u5143\u3002\u4f7f\u7528\u4f4e\u7cbe\u5ea6\u6570\u636e\u4e5f\u4f1a\u51cf\u5c11GPU\u7684\u529f\u8017\uff0c\u4ece\u800c\u5ef6\u957f\u7535\u6c60\u5bff\u547d\u3002 <\/p>\n\n\n\n<p>\u4e00\u822c\u7ecf\u9a8c\u662f\uff0c\u9664\u4e86\u4f4d\u7f6e\u548c\u7eb9\u7406\u5750\u6807\u5916\uff0c\u5176\u4ed6\u6240\u6709\u5185\u5bb9\u90fd\u53ef\u4ee5\u7528half\/fixed\u3002\u4ec5\u5f53\u7cbe\u5ea6\u4e0d\u591f\u65f6\u624d\u63d0\u9ad8<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e0\u7a77\u5927\u7684\u6570\u3001Nana\u548c\u5176\u5b83\u7279\u522b\u6d6e\u70b9\u6570<\/h3>\n\n\n\n<p>Direct3D 10\u7684PC GPU\u90fd\u652f\u6301\u975e\u5e38\u660e\u786e\u7684IEEE 754\u6d6e\u70b9\u6807\u51c6\u3002\u8fd9\u610f\u5473\u7740\u6d6e\u70b9\u6570\u7684\u884c\u4e3a\u4e0e\u5728CPU\u4e0a\u5e38\u89c4\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7684\u884c\u4e3a\u5b8c\u5168\u76f8\u540c\u3002 <\/p>\n\n\n\n<p>\u79fb\u52a8\u5e73\u53f0GPU\u884c\u4e3a\u4e0d\u540c\u3002\u5c06\u96f6\u9664\u4ee5\u96f6\u53ef\u80fd\u4f1a\u5bfc\u81f4NaN\uff1b\u6216\u8005\u53ef\u80fd\u4f1a\u5bfc\u81f4\u65e0\u7a77\u5927\uff0c\u96f6\u6216\u4efb\u4f55\u5176\u4ed6\u672a\u6307\u5b9a\u7684\u503c\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u8981\u786e\u4fdd\u5728\u76ee\u6807\u8bbe\u5907\u4e0a\u6d4b\u8bd5\u7740\u8272\u5668\u4ee5\u68c0\u67e5\u5b83\u4eec\u662f\u5426\u53d7\u652f\u6301\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728PC\u5e73\u53f0-Windows\/Mac\/Linux\u4e0a\uff0chalf,half,float \u4e00\u5f8b\u8fd9\u89c6\u4e3a32-bit fl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1894"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1894"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions"}],"predecessor-version":[{"id":1897,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions\/1897"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}