TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An In-Depth Look at WebGPU

85 点作者 asebold超过 2 年前

11 条评论

flohofwoe超过 2 年前
For an &quot;in-depth look&quot; that was surprisingly shallow ;)<p>I was hoping for a bit of discussion about the trade-offs that WebGPU had to accept to create an as-thin-as-possible wrapper around Vulkan, D3D12 and Metal, while at the same time catering to web developers and guaranteeing the safety requirements of the web.
评论 #34710021 未加载
评论 #34706819 未加载
sxp超过 2 年前
A better place to start than this article for devs who know WebGL&#x2F;OpenGLES would be <a href="https:&#x2F;&#x2F;toji.github.io&#x2F;webgpu-gltf-case-study&#x2F;" rel="nofollow">https:&#x2F;&#x2F;toji.github.io&#x2F;webgpu-gltf-case-study&#x2F;</a> by one of the Google Chrome devs. I also really liked <a href="https:&#x2F;&#x2F;surma.dev&#x2F;things&#x2F;webgpu&#x2F;" rel="nofollow">https:&#x2F;&#x2F;surma.dev&#x2F;things&#x2F;webgpu&#x2F;</a> which was my first in depth intro into rendering via WebGPU.<p>I would also suggest <a href="https:&#x2F;&#x2F;web.dev&#x2F;gpu-compute&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.dev&#x2F;gpu-compute&#x2F;</a> which is a good intro to WebGPU compute, but it was out of date and had broken APIs the last time I tried it. But it has useful theory if you&#x27;ve never used GPU compute before.
评论 #34713880 未加载
SeanAnderson超过 2 年前
I&#x27;m curious if there are technical benefits to interfacing with WebGPU via JS or via WASM (Rust, specifically)?<p>I am currently teaching myself Rust + Bevy with the intent of shipping some proof-of-concept game following the ECS paradigm rendered using WebGPU. This is going fine and I am excited to learn the tech, but my bread-and-butter is JavaScript and I only desire targeting the web. At time of writing, Bevy&#x27;s (WebGL) examples don&#x27;t run on Android devices which is a bit concerning.<p>There is some compelling JS tooling out there for rendering - Babylon, AFrame, UseGPU, etc, but they all have their issues.<p>Babylon: not designed with ECS in mind, same as ThreeJS, declarative programming can be achieved through plugins, but it&#x27;s fragile and significantly less performant than if built natively into the framework.<p>AFrame: powered by Three, but ECS-first and I assume it does a good job at it. Not practical for 2D rendering and really intends to be VR-first with a nod to non-VR 3d.<p>UseGPU: truly what I would like to be using as it&#x27;s declarative by design, but it&#x27;s so new that 2D Sprite is still on the TODO list. I&#x27;m not skillful enough in low-level graphics programming (yet!) to assist in the development.<p>I <i>really</i> want to be ready for this technological shift. I fully intend to build something as complex as RimWorld that runs in your browser. I&#x27;m taking baby steps, as quickly as I can, to get there, but am not sure what tools to be adopting to best prepare.<p>At the moment I&#x27;m betting on Bevy because it has a lot of wind behind its sails, its all-in on ECS, and I suspect avoiding GC for compute-heavy gaming will be beneficial. I don&#x27;t know what interfacing to WebGPU via JS gets me aside from a potentially more rapid prototyping environment. I&#x27;d love to hear others&#x27; takes on this to ensure I don&#x27;t burn months looking in the wrong direction.
评论 #34705716 未加载
评论 #34704204 未加载
评论 #34704006 未加载
评论 #34705291 未加载
评论 #34705221 未加载
评论 #34703876 未加载
评论 #34709713 未加载
fwlr超过 2 年前
Another player in the WebGPU field you may want to add is <a href="https:&#x2F;&#x2F;usegpu.live&#x2F;" rel="nofollow">https:&#x2F;&#x2F;usegpu.live&#x2F;</a>
评论 #34714008 未加载
Jasper_超过 2 年前
This does not seem particularly in-depth.
评论 #34705242 未加载
评论 #34714005 未加载
funerr超过 2 年前
Hi HN, I&#x27;m the author, but not the poster, I didn&#x27;t plan on posting here yet.<p>Ps Unzip is a summary&#x2F;intro not an &quot;in indepth article&quot;. I try to summarize concepts. But thanks to whoever posted, appreciated either way.<p>AMA
fulafel超过 2 年前
It&#x27;s quite late into the text that this mentions WebGPU isn&#x27;t shipping yet and doesn&#x27;t mention at all that the spec isn&#x27;t ready. And in fact WebGL just recently got caught up in Safari to WebGL 2 many years after the spec, has new extensions getting specced and implemented all the time etc. Shiny chasing danger here vs actually shipping something.
评论 #34704973 未加载
评论 #34705914 未加载
评论 #34704515 未加载
评论 #34714058 未加载
评论 #34705564 未加载
ivars超过 2 年前
Is anyone here using WebGPU Native in production? In what state is it right now?
omnicognate超过 2 年前
Does anyone know whether wgpu (the rust library) is ready for production, and if not when it might be? The 0.x version number suggests it isn&#x27;t. I&#x27;m aware that WebGPU, and browser support for it, is still in development and subject to change (and that wgpu is the library underlying that), but I&#x27;m more interested in using wgpu in native rust programs than in browsers&#x2F;wasm, and I&#x27;m not sure if I need to wait until the spec is finalised and browsers officially support it to do so.
评论 #34706921 未加载
peter_d_sherman超过 2 年前
&gt;&quot;WebGPU is an abstraction for modern graphics APIs such as Direct3D 12, Metal, and Vulkan&quot;<p>Which means that someone who wanted to write a graphics API and&#x2F;or graphics API abstraction layer --<p>would do well to <i>study WebGPU</i>...<p>(in addition to other graphics APIs and graphics API abstraction layers...)
Traubenfuchs超过 2 年前
We have had GPU access in the browser for more than a decade now. Are there actually any broadly used applications for it? Everything I come to see appears to be some kind of tech demo that lags behind from what native PC&#x2F;console games could do 20 years ago...
评论 #34707036 未加载
评论 #34706722 未加载