Commit Graph

107 Commits

Author SHA1 Message Date
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
yanchith
e94cfafe50 [rs] Prevent possible double panic in Drop impls
Drop impls for SwapChainOutput, RenderPass and ComputePass now only
call out to wgn if not thread::panicking().
2019-08-20 17:00:19 +02:00
bors[bot]
fa73bd7162 [rs] Merge #68
68: remove usages of wgn in examples r=kvark a=rukai

This slipped through in https://github.com/gfx-rs/wgpu-rs/pull/67

Co-authored-by: Rukai <rubickent@gmail.com>
2019-08-18 04:27:31 +00:00
Rukai
eb39619c21 [rs] remove usages of wgn in examples 2019-08-18 13:36:48 +10:00
bors[bot]
870eae10e9 [rs] Merge #67
67: Update to latest wgpu-native commit r=kvark a=rukai

closes https://github.com/gfx-rs/wgpu-rs/issues/66

Make sure my documentation for sample_mask and alpha_to_coverage_enabled is correct, I am not familiar with these fields.

Co-authored-by: Rukai <rubickent@gmail.com>
2019-08-18 02:38:15 +00:00
Rukai
c3529869d1 [rs] Update to latest wgpu-native commit 2019-08-18 12:19:49 +10:00
bors[bot]
85ee7de986 [rs] Merge #62
62: Fix missing lifetime r=kvark a=danaugrs



Co-authored-by: Daniel Salvadori <danaugrs@gmail.com>
2019-08-14 21:23:31 +00:00
Daniel Salvadori
fae901a370 [rs] Fix missing lifetime 2019-08-14 18:20:52 -03:00
bors[bot]
a5bee859c1 [rs] Merge #61
61: Cleanup examples by using wgpu::read_spirv instead of manually creating a Vec<u32> r=kvark a=rukai

Wait for me to update the git reference once https://github.com/gfx-rs/wgpu/pull/280 is merged.

Co-authored-by: Rukai <rubickent@gmail.com>
2019-08-12 20:57:53 +00:00
Rukai
d60157a782 [rs] Cleanup examples by using wgpu::read_spirv instead of manually creating a Vec<u32> 2019-08-13 06:39:24 +10:00
bors[bot]
943aed1a08 [rs] Merge #60
60: build: update version to 0.3.0 to unconfuse cargo patches r=kvark a=m4b



Co-authored-by: m4b <m4b.github.io@gmail.com>
2019-08-12 15:48:00 +00:00
m4b
e6a9893eee [rs] build: update version to 0.3.0 to unconfuse cargo patches 2019-08-11 21:24:55 -07:00
bors[bot]
a08e857e40 [rs] Merge #58
58: Update to latest wgpu native r=kvark a=rukai

This PR is waiting on https://github.com/gfx-rs/wgpu/pull/276 but also allows us to test 276

Co-authored-by: Rukai <rubickent@gmail.com>
2019-08-12 01:40:25 +00:00
Rukai
a77904f3ff [rs] Update to latest wgpu native 2019-08-11 11:44:09 +10:00
bors[bot]
05fc856ec5 [rs] Merge #48
48: Exposing `set_viewport_rect()` on `RenderPass`. r=kvark a=seivan

Noticed that while viewport work with floats, scissors only work with unsigned integers. 
Not sure if relevant but [`width & height`](https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glViewport.xml) might not be able to be negative.

Co-authored-by: Seivan Heidari <seivan.heidari@icloud.com>
2019-08-10 13:52:26 +00:00
Layl
ad5aab2e55 [rs] Fix sampling in mipmap generation example (#57)
* Change min_filter in mipmap example to Nearest
2019-08-08 10:58:25 -04:00
Dzmitry Malyshau
ff3ae67f3d [rs] Switch msaa example samples to 4 2019-07-29 19:59:39 -04:00
Dzmitry Malyshau
3a8b78ae43 [rs] Update README with some development instructions 2019-07-29 17:13:31 -04:00
Seivan Heidari
ca74b3fbac [rs] Exposing set_viewport() on RenderPass. 2019-07-29 22:52:08 +02:00
bors[bot]
c3c197a8d5 [rs] Merge #46
46: Replace Pod using zerocopy crate r=kvark a=paulkernfeld

See https://github.com/gfx-rs/wgpu/pull/256#issuecomment-515277497

Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com>
2019-07-29 16:54:24 +00:00
Paul Kernfeld
ece89ddb09 [rs] Replace Pod using zerocopy crate
See https://github.com/gfx-rs/wgpu/pull/256#issuecomment-515277497
2019-07-27 13:58:31 -04:00
bors[bot]
8bb84c2769 [rs] Merge #45
45: Update to latest wgpu commit r=kvark a=rukai

Nothing really interesting in between these commits.

Co-authored-by: Lucas Kent <rubickent@gmail.com>
2019-07-26 16:00:45 +00:00