mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
Merge #264
264: update README.md r=kvark a=Napokue Changes: - Add supported platforms table - Remove example docs here, and referencing the user to the wiki Co-authored-by: Timo de Kort <dekort.timo@gmail.com>
This commit is contained in:
commit
c492540f6b
1 file changed
+10
-37
@@ -13,44 +13,17 @@ The implementation consists of the following parts:
|
||||
2. `wgpu-remote` - remoting layer to work with WebGPU across the process boundary
|
||||
3. `ffi` - the C headers generated by [cbindgen](https://github.com/eqrion/cbindgen) for both of the libraries
|
||||
|
||||
Supported platforms:
|
||||
- Vulkan on Windows and Linux
|
||||
- D3D12 and D3D11 on Windows
|
||||
- Metal on macOS and iOS
|
||||
## Supported Platforms
|
||||
|
||||
API | Windows | Linux | macOS & iOS |
|
||||
----- | ------------------ | ------------------ | ------------------ |
|
||||
DX11 | :heavy_check_mark: | | |
|
||||
DX12 | :heavy_check_mark: | | |
|
||||
Vulkan | :heavy_check_mark: | :heavy_check_mark: | |
|
||||
Metal | | | :heavy_check_mark: |
|
||||
|
||||
## Usage
|
||||
|
||||
This repository contains C-language examples that link to the native library targets and perform basic rendering and computation.
|
||||
This repository contains C-language examples that link to the native library targets and perform basic rendering and computation. Please refer to our [Getting Started](https://github.com/gfx-rs/wgpu/wiki/Getting-Started#getting-started) page at the wiki for more information.
|
||||
|
||||
### Prerequisites
|
||||
- C compiler
|
||||
- GLFW 3
|
||||
- Rust nightly toolchain
|
||||
```bash
|
||||
rustup toolchain install nightly
|
||||
```
|
||||
- [Cbindgen](https://github.com/eqrion/cbindgen)
|
||||
```bash
|
||||
cargo install cbindgen
|
||||
```
|
||||
|
||||
|
||||
### Running an example
|
||||
The examples are located under the [examples](examples) directory. We are using a [Makefile](Makefile) for running the examples.
|
||||
|
||||
#### Triangle
|
||||
```bash
|
||||
make example-triangle
|
||||
```
|
||||
|
||||
#### Compute
|
||||
```bash
|
||||
make example-compute
|
||||
```
|
||||
|
||||
#### Remote
|
||||
```bash
|
||||
make example-remote
|
||||
```
|
||||
|
||||
The idiomatic Rust wrapper lives in https://github.com/gfx-rs/wgpu-rs and provides a number of more [complex examples](https://github.com/gfx-rs/wgpu-rs/tree/master/examples) to get a feel of the API.
|
||||
The idiomatic Rust wrapper lives in https://github.com/gfx-rs/wgpu-rs and provides a number of more [complex examples](https://github.com/gfx-rs/wgpu-rs/tree/master/examples) to get a feel of the API.
|
||||
Reference in new issue
Block a user