Tsigiro yeWebGPU inouya neshanduro dzehusiku dzeFirefox

Ruzivo rwekubatanidza iyo WebGPU rubatsiro tsananguro yakaburitswa muFirefox husiku inovaka, izvo izvozvi inopa inoratidzira chirongwa cheiyo 3D mifananidzo yekugadzirisa uye computing padivi reGPU, zvine musoro zvakafanana neVulkan API, simbi uye Direct3D 12. Tsananguro yacho iri kugadzirwa neMozilla, Google, Apple, Microsoft uye vamiriri venharaunda muboka rinoshanda rakagadzirwa nesangano W3C.

Chinangwa chakakosha cheWebGPU kugadzira yakachengeteka, iri nyore, inotakurika, uye yepamusoro-inoshanda software interface yekushandisa padandemutande rewebhu ne 3D mifananidzo tekinoroji uye kugona kunopihwa neazvino maseru girafu APIs senge Direct3D 12 paWindows, Metal pane macOS, uye Vulkan paLinux.

Conceptually, WebGPU inosiyana neWebhuGL nenzira imwechete iyo Vulkan inosiyana neOverGL uye haina kubva pane yakatarwa grafiki API, asi iri yepasi rose dura, kazhinji, ichishandisa iwo mamwe epasi-epamhando yekutanga ayo anowanikwa muVulkan, Metal, uye Direct3D.

MuFirefox, "dom.webgpu.enabled" seti inopihwa kugonesa WebGPU mune nezve: config. Pamusoro pekupa CanvasContext inodawo kuiswa kweiyo WebRender yekugadzira system ("gfx.webrender.all" mune nezve: config).

Iyo WebGPU kuitiswa inoenderana neiyo wgpu kodhi yeprojekiti yakanyorwa muRust uye inogona kushanda pamusoro peiyo DX12, Vulkan, uye Metal APIs paLinux, Android, Windows, uye macOS (DX11 uye OpenGL ES 3.0 rutsigiro irwowo mukuvandudza).

Nezve WebGPU

WebGPU inopa JavaScript zvinoshandiswa nemidziyo yekudzika-chikamu chikamu nezve sangano, iyo kugadzirisa uye kuendesa kwemirairo kuGPU, maneja zviwanikwa zvine chekuita, ndangariro, mabhaisikopu, zvigadzirwa zvemavara, uye zvakanyorwa mifananidzo yakajeka. Iyi nzira icha inogonesa epamusoro kuita magiraidhi ekushandisa nekudzora pamusoro uye nekuwedzera kushanda kwekushanda neGPU.

WebGPU zvinoita kuti zvikwanise kugadzira zvakakwana zvakakwana 3D mapurojekiti ewebhu hazviite zvakanyanya kupfuura zvakamira zvirongwa zvinotaurirana zvakanangana neVulkan, Metal, kana Direct3D, asi hazvina kusungirirwa kune mamwe mapuratifomu.

Uyewo inopa humwe hunyanzvi nekutakura echinyakare mapikicha zvirongwa kune fomu inogona kushanda pahwaro hwewebhu-yakavakirwa matekinoroji nekushandisa tekinoroji yeWebhu.

Pamusoro peiyo 3D mifananidzo, WebGPU inovharawo mikana inosangana nekubvisa komputa padyo neGPU uye rutsigiro rwekuvandudza shader. Shader dzinogona kugadzirwa muWebGPU shader mutauro kana kudomwa mune yeSpIR-V yepakati fomati, uyezve ndokushandurirwa mumitauro shader inotsigirwa nevatyairi vemazuva ano.

WebGPU inoshandisa zvakasiyana manejimendi manejimendi, basa rekugadzirira, uye kuraira kutumira kuGPU (muWebGGL, chinhu chimwe chaikonzera zvese panguva imwe chete). Mamiriro matatu akapatsanurwa anopihwa: GPUDevice yekugadzira zviwanikwa senge machira uye buffers; GPUCommandEncoder yekukodha yega mirairo, kusanganisira madanho ekupa uye ekuverenga. GPUCommandBuffer kumutsetse wekuurayiwa paGPU.

Musiyano wechipiri pakati peWebGPU neWebGL ndeimwe nzira yekubata nyika. Zvinhu zviviri zvinokurudzirwa muWebGPU: GPURenderPipeline uye GPUComputePipeline, iyo inobvumidza kusanganisa matunhu akati wandei akatsanangurwa nemugadziri, izvo zvinobvumidza bhurawuza kuti isatambisa zviwanikwa pane rimwe basa, sekudzorera shading. Nyika dzakatsigirwa dzinosanganisira: shading, vertex buffers uye hunhu marongero, akasunganidzwa marongero eboka, kusanganisa, kudzika uye mapatani, mafomati ekuburitsa mushure mekupa.

Chechitatu chimiro cheWebGPU ndiyo inosunga modhi, iyo mune zvakawanda yakafanana nenzira dzekubatanidza zviwanikwa zviripo muVulkan. Kugovera zviwanikwa mumapoka, WebGPU inopa GPUBindGroup chinhu icho, nekunyora mirairo, inogona kusangana nezvimwe zvakafanana zvinhu zvekushandisa mumumvuri.

Kugadzirwa kwemapoka akadaro kunotendera mutyairi kuti aite zviito zvekugadzirira zvisati zvaitika, uye bhurawuza rinomutendera kuti achinjanise zviwanikwa zvekubatanidza pakati pekudhonza mafoni nekukurumidza.

mabviro: https://hacks.mozilla.org/


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako