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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

WebGPU Error Handling best practices

73 点作者 markdog12大约 2 年前

4 条评论

throwaway12245大约 2 年前
What is the release status of WebGPU? Seems like it changes so fast that browser support , i.e. Firefox nightly for example, is spotty.
评论 #34933918 未加载
评论 #34935029 未加载
评论 #34934666 未加载
unconed大约 2 年前
&gt;This all happens in a different thread or even different process than the one that’s running your JavaScript. That’s great for performance,<p>Is it tho? What is the overhead of passing data across the boundary? What is the limit of the number of draw calls you can make, and how does it compare to a native vulkan or metal rendering loop?<p>I think what OP meant to write is: &quot;this is necessary to avoid blocking the main UI thread because JS is single threaded, while process isolation is needed because GPU APIs are insecure and buggy&quot;.
kevingadd大约 2 年前
The decision to have named error handling scopes on a stack with an asynchronous API feels truly bizarre to me. Now if I write async code that wants to interact with error scopes, I need some sort of complex helper library that manages pushing and popping scopes off the stack and forwarding the results to me, because I don&#x27;t have any way to pop the specific scope I pushed directly.
评论 #34933962 未加载
zagrebian大约 2 年前
Does that blog have an RSS feed?
评论 #34935217 未加载