Skip to content

Commit b90f8fe

Browse files
unconedgrovesNL
authored andcommitted
Update 2019-03-06-wgpu.md
1 parent a48b217 commit b90f8fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_posts/2019-03-06-wgpu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ With these goals in mind, we'd like to announce our new project: [wgpu-rs](https
2020

2121
wgpu-rs is aiming to be a safe, portable API which reduces the complexity of working with low-level graphics APIs. It has a layered implementation:
2222

23-
- The `wgpu-native` layer which exposes a C API. `wgpu-native` implemented on top of gfx-hal which allows it to work with the same platforms that gfx-hal already supports. The idea is that `wgpu-native` will have a compatible C API with Google's [Dawn](https://dawn.googlesource.com/dawn) implementation so they can be used interchangeably for applications compiled in other languages.
24-
- The `wgpu-rs` layer which is an idiomatic safe Rust API. It uses `wgpu-native` internally when targetting the native targets. It will use Web APIs (from WASM host bindings) directly when targetting the Web in the future.
23+
- The `wgpu-native` layer which exposes a C API. `wgpu-native` is implemented on top of gfx-hal which allows it to work with the same platforms that gfx-hal already supports. The idea is that `wgpu-native` will have a compatible C API with Google's [Dawn](https://dawn.googlesource.com/dawn) implementation so they can be used interchangeably for applications compiled in other languages.
24+
- The `wgpu-rs` layer which is an idiomatic safe Rust API. It uses `wgpu-native` internally on native targets. It will use Web APIs (from WASM host bindings) directly when targeting the Web in the future.
2525

2626
Let's dive into the mentioned qualities of the API:
2727

2828
### Simple
2929

30-
Writing straight Vulkan code for an application can easily challenge users sanity. It's a great API, it's well documented, but still very complex, and it's made with the focus on engines as opposed to direct users. You have to think about the memory allocations, pipeline stages, resource states and lifetimes, all the time. Just rendering a textured rectangle out there without triggering any validation warnings is an achievement.
30+
Writing straight Vulkan code for an application can easily challenge a user's sanity. It's a great API, it's well documented, but still very complex, and it's made with a focus on engines as opposed to direct users. You have to think about the memory allocations, pipeline stages, resource states and lifetimes, all the time. Just rendering a textured rectangle out there without triggering any validation warnings is an achievement.
3131

3232
WebGPU automates some of the aspects of low-level graphics APIs which have high complexity but low return on investment. It still has the core pieces of the next-gen APIs, such as command buffers, render passes, pipeline states and layouts. Because the complexity is reduced, users will be able to direct more focus towards writing efficiently application code.
3333

0 commit comments

Comments
 (0)