is webGPU actually web-specific somehow? #4251
Replies: 2 comments 6 replies
-
Well wgpu is a sort of small abstraction layer on top of native graphics api, which include WebGPU, so no it's not just a web thing or like electron. But i think it does has a small overhead compared to interacting with a native api, but that overhead is practically insignificant. And no it's not a misuse of the crate to use outside of web, Veloren uses wgpu, Bevy uses wgpu, Iced uses wgpu, and a lot of other projects |
Beta Was this translation helpful? Give feedback.
-
WebGPU has these requirements in order to serve its goals:
Conveniently, both of these things also make the WebGPU API design a good API design for a Rust GPU abstraction layer. Thus, And, in addition to its use in Rust applications, parts of |
Beta Was this translation helpful? Give feedback.
-
I'm at the very start of learning how to interact with a GPU, so i currently know next to nothing. While searching for a starting point i came across this crate. the name "webGPU" and its history strongly suggest that this is for web applications, but looking into the documentation it seems like web is nothing more than another possible platform to target, and working with wgpu doesn't necessarily involve any webdev at all. I wondering, is this some web thing ported to desktop (with corresponding overhead, like electron disguising a browser as a native desktop app), or is it platform native by design with just a misleading name? would it be a misuse to choose this crate when not targeting web at all?
sorry if my question is lacking a bit of structure, asking clear isolated questions is difficult with this little knowledge
Beta Was this translation helpful? Give feedback.
All reactions