Commit Graph

128 Commits

Author SHA1 Message Date
Jacob Greenfield
c826c712c7 [rs] Enable Travis cache 2019-11-21 18:02:44 -05:00
bors[bot]
9e638fdee5 [rs] Merge #126
126: Fix generic bounds on buffer mapping r=grovesNL a=kvark

Smaller (and incomplete!) alternative to #119 while it's still discussed.
One missing piece here is alignment. cc @Coder-256

Also, importing `wgpu-core` as just "core" wasn't the best idea 😅 : it collides with the actual `core`.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2019-11-21 03:08:12 +00:00
Dzmitry Malyshau
d0646a512e [rs] Fix generic bounds on buffer mapping 2019-11-20 21:25:46 -05:00
bors[bot]
2689dfa460 [rs] Merge #125
125: Use count rather than size in map_read/write_async r=kvark a=cormac-obrien

Fixes #124.

Co-authored-by: Cormac O'Brien <cormac@c-obrien.org>
2019-11-20 15:00:15 +00:00
Cormac O'Brien
83f943cab7 [rs] Use count rather than size in map_read/write_async
Fixes #124
2019-11-20 04:29:09 -06:00
bors[bot]
fcc162a7aa [rs] Merge #122
122: Wholesome update for the git master of wgpu-native r=grovesNL a=kvark

Depends on https://github.com/gfx-rs/wgpu/pull/382

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2019-11-20 01:59:27 +00:00
Dzmitry Malyshau
46cead456c [rs] Wholesome update for the git master of wgpu-native 2019-11-19 20:58:32 -05:00
bors[bot]
6b19641d96 [rs] Merge #115
115: Handle error case for SwapChain::get_next_texture r=kvark a=antonok-edm

Updates `SwapChain::get_next_texture` to account for https://github.com/gfx-rs/wgpu/pull/369. Otherwise, an invalid `Id` is returned and may cause confusing errors.

Co-authored-by: Anton Lazarev <antonok35@gmail.com>
2019-11-06 03:48:03 +00:00
Anton Lazarev
569e4aca85 [rs] Handle error case for SwapChain::get_next_texture 2019-11-05 14:46:25 -08:00
Dzmitry Malyshau
f370e47910 [rs] Version bump to 0.4 2019-11-03 21:40:55 -05:00
bors[bot]
da78dbd9ea [rs] Merge #114
114: skybox: log::debug and make rotation slower r=kvark a=m4b



Co-authored-by: m4b <m4b.github.io@gmail.com>
2019-11-04 00:21:36 +00:00
m4b
6a8ffdc60a [rs] skybox: log::debug and make rotation slower 2019-11-03 16:19:43 -08:00
bors[bot]
e92e4d94d4 [rs] Merge #109
109: add initial skybox example, ref #93 r=m4b a=m4b

1. doesn't render the images at all
2. mip map stuff needs clarification
3. will update uniform with temporal rotation so we can see the skybox better

Co-authored-by: m4b <m4b.github.com@gmail.com>
2019-11-03 07:08:43 +00:00
m4b
e8515ca9cc [rs] docs: add skybox.gif to readme gallery 2019-11-03 00:05:10 -07:00
m4b
3cb66f6292 [rs] examples: add skybox example, fixes #93
* Adds new skybox example for demonstrating cubemap uses
* Adds .png files for skybox
* Adds skybox vert and frag shaders
2019-11-02 19:42:25 -07:00
bors[bot]
4a6c1f8e41 [rs] Merge #107
107: Update to wgpu-native b8d26c9186 r=trivial a=kvark



Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2019-10-31 02:27:35 +00:00
Dzmitry Malyshau
b707e53582 [rs] Update to wgpu-native b8d26c9186 2019-10-30 22:26:42 -04:00
bors[bot]
86583e8099 [rs] Merge #100
100: Fix shadow sampling r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2019-10-24 18:56:08 +00:00
Dzmitry Malyshau
ca3d8038cf [rs] Fix shadow sampling outside of the positive hemisphere 2019-10-24 12:28:37 -04:00
Dzmitry Malyshau
cdd3614b39 [rs] Refactor log crate usage 2019-10-24 12:26:58 -04:00
bors[bot]
82dedda761 [rs] Merge #99
99: Update dependencies (including wgpu commit) r=kvark a=rukai



Co-authored-by: Rukai <rubickent@gmail.com>
2019-10-19 02:22:26 +00:00
Rukai
bd5575d3b9 [rs] Update dependencies 2019-10-19 09:43:15 +11:00
bors[bot]
48a571ddf2 [rs] Merge #98
98: Add pixels to the friends list r=kvark a=parasyte

We're using `wgpu` to create the world's most powerful pixel frame buffer. 😂

The crate isn't published yet. Waiting for `wgpu` 0.4: https://github.com/parasyte/pixels/issues/16

Co-authored-by: Jay Oster <jay@kodewerx.org>
2019-10-16 13:09:20 +00:00
Jay Oster
626a884af5 [rs] Add pixels to the friends list 2019-10-15 18:58:10 -07:00
bors[bot]
35546904ca [rs] Merge #92
92: Fix docs describing how to create a surface r=grovesNL a=parasyte

I noticed this issue as I was combing the source.

Co-authored-by: Jay Oster <jay@kodewerx.org>
2019-10-03 12:33:24 +00:00
Jay Oster
8b6c09722e [rs] Fix docs describing how to create a surface 2019-10-02 21:15:10 -07:00
bors[bot]
05f54470ef [rs] Merge #89
89: Adapter::get_info r=kvark a=paulkernfeld

This more or less addresses #7.

If the example is too trivial, I'm happy to remove it.

Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com>
2019-09-23 16:26:25 +00:00
Paul Kernfeld
4b5afb8ba1 [rs] Adapter describe example 2019-09-21 21:10:58 -04:00
Paul Kernfeld
f7bce2cc4e [rs] Add Adapter::get_info 2019-09-21 21:10:58 -04:00
bors[bot]
728963b50c [rs] Merge #87
87: Add indirect draw/dispatch methods r=kvark a=swiftcoder

It looks like the indirect draw/dispatch methods are present in wgpu-native, but not yet exposed in the wrapper.

Co-authored-by: Tristam MacDonald <swiftcoder@gmail.com>
2019-09-16 01:12:45 +00:00
Tristam MacDonald
9512d6a21c [rs] Add indirect draw/dispatch methods 2019-09-15 12:57:22 -07:00
bors[bot]
8291b56373 [rs] Merge #86
86: Update readme with Yatekii's fork of imgui-wgpu-rs r=kvark a=Yatekii



Co-authored-by: Noah Hüsser <yatekii@yatekii.ch>
2019-09-15 00:13:22 +00:00
Noah Hüsser
0e3b6d7ea1 [rs] Update readme with Yatekii's fork of imgui-wgpu-rs 2019-09-15 00:49:05 +02:00
Dzmitry Malyshau
43621c5160 [rs] Update wgpu-native revision to latest 2019-09-11 22:15:58 -04:00
bors[bot]
c4a3a33b2b [rs] Merge #83
83: Propagate making Vulkan backend available to wgpu-rs r=kvark a=yanchith

`wgpu-native` has `gfx-backend-vulkan` feature which makes Vulkan available on macOS. This adds the feature to `wgpu-rs` also.

Co-authored-by: yanchith <yanchi.toth@gmail.com>
2019-09-10 14:05:43 +00:00
yanchith
2101e405cf [rs] Propagate making Vulkan backend available to wgpu-rs 2019-09-10 15:27:22 +02:00
bors[bot]
b01a4bb169 [rs] Merge #82
82: Return Queue separately r=grovesNL a=kvark

What problem is this PR trying to solve? We want `Device` to be freely accessible from multiple threads/objects and internally synchronized. `Arc<Device>` seems like a natural choice of such a sharable object, especially since all except one methods are `&self`.

That one method is `get_queue()`, and it returns a temporary object `Queue<'a>`. If we turn it into `&self`, we'd end up with multiple instances of `Queue` created at any time, which contradicts the initial design (of this Rust wrapper). If it stays `&mut` and the user wraps the device into `Arc`, they'll never be able to submit any work...

So this PR solves this by moving the `Queue` completely outside of the device.

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2019-09-10 13:27:14 +00:00
Dzmitry Malyshau
1729ca8b94 [rs] Return Queue separately 2019-09-10 09:26:18 -04:00
bors[bot]
559e5ceb33 [rs] Merge #80
80: Update to the new swapchain model r=trivial a=kvark

Fixes #74 
Fixes https://github.com/gfx-rs/wgpu/issues/292

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2019-09-10 01:44:55 +00:00
Dzmitry Malyshau
5baac54eb9 [rs] Update to the new swapchain model 2019-09-09 21:39:55 -04:00
bors[bot]
304ca7c5c2 [rs] Merge #77
77: Modify examples to use PowerPreference::Default r=kvark a=danaugrs



Co-authored-by: Daniel Salvadori <danaugrs@gmail.com>
2019-09-06 00:07:19 +00:00
Daniel Salvadori
84a33603dc [rs] Modify examples to use PowerPreference::Default 2019-09-05 19:14:53 -03:00
Dzmitry Malyshau
8d2eb6ee42 [rs] wgpu-native update to 40fb3fcdfd 2019-09-02 21:12:22 -04:00
bors[bot]
9b71766939 [rs] Merge #73
73: Update wgpu-native to the commit that has no backend features. r=grovesNL a=kvark

This change removes the dependency on gfx-rs backends, refactors
Adapter and Surface creation to be done from nothing.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2019-08-30 02:05:14 +00:00
Dzmitry Malyshau
a9fdd0af18 [rs] Update wgpu-native to the commit that has no backend features.
This change removes the dependency on gfx-rs backends, refactors
Adapter and Surface creation to be done from nothing.
2019-08-29 22:04:43 -04:00
bors[bot]
307f519f63 [rs] Merge #71
71: Use `HasRawWindowHandle` in `create_surface` r=kvark a=hecrj

This change lets users use `wgpu` without listing `raw-window-handle` as a direct dependency themselves.

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2019-08-23 15:35:30 +00:00
Héctor Ramón Jiménez
26cfd30cc4 [rs] Use HasRawWindowHandle in create_surface 2019-08-22 22:26:07 +02:00
bors[bot]
fd8996fc0a [rs] Merge #70
70: Wholesome update for wgpu-0.3 r=everyone a=kvark

~~This update is a little more opinionated, i.e. the BGL creation just accepts a slice of things instead of a descriptor. I believe the reason for descriptors in the upstream API is mostly techincal - it's more convenient to generate bindings in Googles giant codegen. Following it verbatim doesn't appear to be strictly necessary, especially if we can extract better usability from Rust features.~~

The change also disables "gl" feature for the release. We'll re-enable it once we can provide it nicely, it will not be a breaking change.

I also noticed that barriers are not working correctly on the mipmap example. Will investigate separately - the native part is already published anyway. Edit: fixed by https://github.com/gfx-rs/wgpu/pull/302

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2019-08-22 03:53:37 +00:00
Dzmitry Malyshau
c7a4ee36c5 [rs] Wholesome update for wgpu-0.3 2019-08-21 23:51:09 -04:00
bors[bot]
141406f257 [rs] Merge #69
69: Prevent possible double panic in Drop impls r=kvark a=yanchith

Drop impls for `SwapChainOutput`, `RenderPass` and `ComputePass` now only
call out to `wgn` if not `thread::panicking()`.

Fixes #50 

Co-authored-by: yanchith <yanchi.toth@gmail.com>
2019-08-20 15:26:32 +00:00