bors[bot] 8cc50253c4 Merge #213
213: Use wider type for swapchain image epoch r=kvark a=grovesNL

Fixes #209

I don't think we need to do anything else here because it seems to only be used internally, so this should be a simple change.

Also ensures cbindgen is installed when targeting nightly on CI. It looks like it happened to be available on some Travis environments already so I missed this in #169

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2019-06-05 13:27:48 +00:00
2019-06-05 01:55:24 +00:00
2019-05-19 15:10:52 -04:00
2019-06-05 09:20:59 -02:30
2018-09-14 11:39:24 -04:00
2019-05-30 13:34:43 -04:00
2019-05-10 20:40:42 -04:00
2019-05-24 14:46:37 +07:00
2018-09-13 15:18:51 -04:00
2019-06-04 22:09:58 -02:30
2019-05-24 14:46:37 +07:00

This is an active GitHub mirror of the WebGPU native implementation in Rust, which now lives in Mozilla-central. Issues and pull requests are accepted, but we merge them in m-c manually and then sync to GitHub instead of landing directly here.


WebGPU

Build Status Crates.io Gitter

This is an experimental WebGPU implementation as a native static library. It's written in Rust and is based on gfx-hal and Rendy libraries. The corresponding WebIDL specification can be found at gpuweb project.

The implementation consists of the following parts:

  1. wgpu-native - the native implementation of WebGPU as a C API library
  2. wgpu-remote - remoting layer to work with WebGPU across the process boundary
  3. ffi - the C headers generated by cbindgen for both of the libraries

Supported platforms:

  • Vulkan on Windows and Linux
  • D3D12 and D3D11 on Windows
  • Metal on macOS and iOS

Usage

This repository contains C-language examples that link to the native library targets and perform basic rendering and computation. To run the C triangle example, install a C compiler + glfw 3, then run these commands at the root of the repo:

rustup toolchain install nightly
cargo install cbindgen
make examples-native
cd examples/hello_triangle_c/build
./hello_triangle

The idiomatic Rust wrapper lives in https://github.com/gfx-rs/wgpu-rs and provides a number of more complex examples to get a feel of the API.

Description
No description provided
Readme 137 MiB
Languages
Rust 79.9%
WGSL 16.2%
HLSL 2%
GLSL 1.7%
JavaScript 0.2%