Commit Graph
8897 Commits
Author SHA1 Message Date
Gabriel Majeri 31726862c9 [rs] Build and deploy examples in CI 2020-04-24 22:32:26 -02:30
Igor Shaposhnik 94c06b0c9b [rs] Disable fail fast on CI 2020-04-24 22:31:21 -02:30
Christophe Massolin e8244ae5e3 [rs] Update README.md for running examples on the web (#275)
* [readme] add details for running on wasm32 target

* [readme] update

* [readme] [web] Running instruction on webgpu.io
2020-04-24 09:42:15 -04:00
Igor Shaposhnik 1088683643 Fix windows nightly CI 2020-04-24 10:34:13 -02:30
Igor Shaposhnik 84cb39ee73 Install clippy on CI 2020-04-24 01:22:40 -02:30
bors[bot]andAron Granberg e0ec201ee5 [rs] Merge #271
271: Improve docs for BindingType r=kvark a=HalfVoxel

I think everything should be correct.

The readonly flags seem obvious at face value, but I couldn't find anything in the specifications about them (other than some unrelated validation), so I didn't add any documentation for those fields.

Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
2020-04-22 13:08:31 +00:00
Aron Granberg 8219a64ecb [rs] Improve docs for BindingType 2020-04-22 15:07:11 +02:00
Igor Shaposhnik 5c172dd475 Migrate CI to GitHub Actions (#605) 2020-04-22 09:03:26 -04:00
bors[bot]andDzmitry Malyshau 4f1dbaf9ef [rs] Merge #268
268: Fix hello-triangle example format and bind group r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-21 23:10:18 +00:00
Dzmitry Malyshau 628af82d4c [rs] Fix hello-triangle example format and bind group 2020-04-21 19:08:42 -04:00
Dzmitry Malyshau baf435d8b8 Add is_power_of_two function (#603) 2020-04-21 09:29:10 -04:00
Dzmitry Malyshau 5e458b5d45 Separate public usage from internal use (#601) 2020-04-21 09:12:40 -04:00
Aron Granberg 21b441d087 Improve error messages for mismatched binding types (#593) 2020-04-20 14:41:40 -04:00
bors[bot]andJoshua Groves 0f8c0947d9 [rs] Merge #262
262: Reverse srgb in hello-triangle r=kvark a=grovesNL

Reverse srgb support in hello-triangle (these were backwards by mistake)

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-04-20 02:18:30 +00:00
bors[bot]andJoshua Groves ec8b028326 [rs] Merge #264
264: Use opaque texels in mipmap example r=kvark a=grovesNL

This fixes rendering for the mipmap example in Nightly

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-04-20 02:13:07 +00:00
Joshua Groves 3a121231b7 [rs] Use opaque texels in mipmap example 2020-04-19 23:38:58 -02:30
Joshua Groves 8f7d7ce028 [rs] Reverse srgb support in hello-triangle 2020-04-19 16:32:50 -02:30
bors[bot]andDzmitry Malyshau 1234c96373 Merge #596
596: Remove wgpu-native and wgpu-remote r=grovesNL a=kvark

Closes #587 

I'm still not sure if it's a good idea. Feedback is welcome!
For instance, even after we remove these two things, the repo will still contain a bunch of logic that Gecko wouldn't necessarily be interested in, such as the surface/swapchains logic.

It's also not clear to me how to properly organize the workflow with the wgpu-native being separate (btw, it's https://github.com/gfx-rs/wgpu-native). Do we still have the workspace here? Or do we just introduce a separate repo that will include all the stuff as sub-modules and have a single workspace?

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-18 21:40:51 +00:00
bors[bot]andDzmitry Malyshau e612ac1fe2 Merge #600
600: Fix host mapping buffer barriers r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-18 20:58:52 +00:00
Dzmitry Malyshau df2c97ff0c Fix host mapping buffer barriers 2020-04-18 16:56:05 -04:00
bors[bot]andDzmitry Malyshau f4550cc4e3 Merge #598
598: Enable READ access for texture storage r=kvark a=kvark

This is a short-term workaround until we properly implement #597 

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-18 17:30:21 +00:00
Dzmitry Malyshau 75d0157aa7 Enable READ access for texture storage 2020-04-18 13:29:17 -04:00
Dzmitry Malyshau 0b20277396 [rs] Add harmony to README 2020-04-18 11:21:08 -04:00
Joshua Groves 930d2cd791 [rs] Use srgb for swapchain when possible 2020-04-18 01:04:28 -02:30
Joshua Groves f35c3fb3cd [rs] Add wasm to CI 2020-04-18 01:04:28 -02:30
Joshua Groves 1d72176b1d [rs] Add labels to mapped descriptors where possible 2020-04-18 01:04:28 -02:30
Joshua Groves 6aa83a526b [rs] Fix some remaining TODOs in the web backend 2020-04-18 01:04:28 -02:30
Joshua Groves 0fbb75ea95 [rs] Expose more functions on the web backend 2020-04-18 01:04:28 -02:30
Joshua Groves 1f4b8801f5 [rs] Combine wasm_main/main and add console_log 2020-04-18 01:04:28 -02:30
Joshua Groves c3c5d3927a [rs] Switch event loop back to ControlFlow::Poll 2020-04-18 01:04:28 -02:30
Joshua Groves c4be28fcd9 [rs] Allow describe example to run on the web 2020-04-18 01:04:28 -02:30
Joshua Groves 095d682a5b [rs] Get shadow mostly working
Some of the implementation is still missing in Canary
2020-04-18 01:04:28 -02:30
Joshua Groves 3b8e0db62a [rs] Update to latest winit and wasm-bindgen 2020-04-18 01:04:28 -02:30
Joshua Groves 44083411d9 [rs] Only expose adapter info on native 2020-04-18 01:04:28 -02:30
Joshua Groves 654833ea56 [rs] Get capture mostly working
`File::create` isn't available on wasm, so we can't actually write the
output image anywhere unless we target something else as the file
system (e.g. local storage)
2020-04-18 01:04:28 -02:30
Joshua Groves 8f7d8cf27e [rs] Get mipmap mostly working
Subresource tracking for mip levels isn't available in Canary yet, so
we can't verify that the web example output matches native
2020-04-18 01:04:28 -02:30
Joshua Groves c7dc1f6140 [rs] Get skybox working 2020-04-18 01:04:28 -02:30
Joshua Groves 49ef627bb0 [rs] Get cube working 2020-04-18 01:04:28 -02:30
Joshua Groves 9aedbed2eb [rs] Get boids working 2020-04-18 01:04:28 -02:30
Joshua Groves 75ec7155f1 [rs] Add web backend 2020-04-18 01:04:28 -02:30
Timo de Kort 4b686165c2 Remove duplicate constants in IR module 2020-04-17 17:57:35 -04:00
bors[bot]andAlmar Klein daf45362bc Merge #591
591: Warn when binding a buffer that is still mapped r=kvark a=almarklein

Fixes #510

I'd like to make more contributions wrt validation. Though I'm quite new to Rust, so let's start small :)  

From the discussion in #510 I concluded that in this case the buffer has actually been dropped, does the error message make sense like this?

Do the messages logged with `log::warn`, end up in the same logging system as the layer validation messages? So a solution to get those messages into Python (for wgpu-py) would work for both kinds of validation messages?


Co-authored-by: Almar Klein <almar.klein@gmail.com>
2020-04-17 21:15:19 +00:00
bors[bot]andStarToaster f984eb1997 [rs] Merge #259
259: Remove zerocopy and replace with bytemuck. r=kvark a=StarArawn

fixes #146 

I've removed `zerocopy` from the examples and replaced it with `bytemuck`. I ran all of the examples/tests and everything ran great in vulkan on my windows box.

Co-authored-by: StarToaster <startoaster23@gmail.com>
2020-04-17 14:11:30 +00:00
StarToaster f2d429570c [rs] Removed zerocopy and replaced it with bytemuck. 2020-04-17 10:07:24 -04:00
bors[bot]andDzmitry Malyshau 4bf3d57bb5 Merge #595
595: Derive swapchain layout off the load operation r=kvark a=kvark

Fixes https://github.com/gfx-rs/wgpu-rs/issues/258

It's fairly simple. We expect there to be exactly one `LoadOp::Clear` for the swapchain attachment, and for it to be the first pass in a frame using it. Any other passes need to do `LoadOp::Load`.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-17 04:01:08 +00:00
Dzmitry Malyshau dbb261b7f1 Remove wgpu-native and wgpu-remote 2020-04-16 22:35:59 -04:00
Dzmitry Malyshau 8eefe269c1 Derive swapchain layout off the load operation 2020-04-16 21:49:24 -04:00
Almar Klein e7005548c0 Warn when binding a buffer that is still mapped 2020-04-16 11:35:03 +02:00
bors[bot]andAron Granberg 6b0751f1f8 Merge #586
586: Improve drawing error messages r=kvark a=HalfVoxel



Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
2020-04-15 12:59:58 +00:00
bors[bot]andAron Granberg 2b120018f5 Merge #583
583: Improve error messages when passing buffers with the wrong usage flags r=kvark a=HalfVoxel

e.g.

```
thread 'main' panicked at 'An invalid setIndexBuffer call has been made. The buffer usage is COPY_DST | VERTEX which does not contain required usage INDEX
```

Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
2020-04-15 12:30:48 +00:00