Commit Graph

108 Commits

Author SHA1 Message Date
bors[bot]
012d08d64d 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
409d518cdf Update dependencies 2019-10-19 09:43:15 +11:00
bors[bot]
fdaeaba443 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
8d726724da Add pixels to the friends list 2019-10-15 18:58:10 -07:00
bors[bot]
cb25914b95 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
f336fb5825 Fix docs describing how to create a surface 2019-10-02 21:15:10 -07:00
bors[bot]
697393df47 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
9f221584d6 Adapter describe example 2019-09-21 21:10:58 -04:00
Paul Kernfeld
2a1c94f5e9 Add Adapter::get_info 2019-09-21 21:10:58 -04:00
bors[bot]
68df066469 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
3f0256bf4e Add indirect draw/dispatch methods 2019-09-15 12:57:22 -07:00
bors[bot]
0ef17c7fbd 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
b229ac8cf9 Update readme with Yatekii's fork of imgui-wgpu-rs 2019-09-15 00:49:05 +02:00
Dzmitry Malyshau
17077f49b5 Update wgpu-native revision to latest 2019-09-11 22:15:58 -04:00
bors[bot]
5edb6ecf13 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
6b5aa333b7 Propagate making Vulkan backend available to wgpu-rs 2019-09-10 15:27:22 +02:00
bors[bot]
ca2193201d 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
00c6d97dce Return Queue separately 2019-09-10 09:26:18 -04:00
bors[bot]
f9bbfc7cf8 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
71b0a7c217 Update to the new swapchain model 2019-09-09 21:39:55 -04:00
bors[bot]
472fa2934a 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
8f8cccd97e Modify examples to use PowerPreference::Default 2019-09-05 19:14:53 -03:00
Dzmitry Malyshau
433ab156ea wgpu-native update to 40fb3fcdfd 2019-09-02 21:12:22 -04:00
bors[bot]
1b401871ca 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
c6522fa60b 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]
b7d8d8fa99 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
ad11bf071b Use HasRawWindowHandle in create_surface 2019-08-22 22:26:07 +02:00
bors[bot]
0641ef6aa3 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>
wgpu-v0.3.0
2019-08-22 03:53:37 +00:00
Dzmitry Malyshau
c2743c279e Wholesome update for wgpu-0.3 2019-08-21 23:51:09 -04:00
bors[bot]
925e526e70 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
a63bb3f745 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]
da6377acc7 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
88965efbbf remove usages of wgn in examples 2019-08-18 13:36:48 +10:00
bors[bot]
e2b6727eb0 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
69a894e91a Update to latest wgpu-native commit 2019-08-18 12:19:49 +10:00
bors[bot]
79b5342ee2 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
bce324528e Fix missing lifetime 2019-08-14 18:20:52 -03:00
bors[bot]
d332eade8a 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
53b5297bdc Cleanup examples by using wgpu::read_spirv instead of manually creating a Vec<u32> 2019-08-13 06:39:24 +10:00
bors[bot]
32d126b0a2 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
ece00afc34 build: update version to 0.3.0 to unconfuse cargo patches 2019-08-11 21:24:55 -07:00
bors[bot]
e515a59309 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
b17e85d063 Update to latest wgpu native 2019-08-11 11:44:09 +10:00
bors[bot]
5614eca46d 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
82469e13b2 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
5522c912f7 Switch msaa example samples to 4 2019-07-29 19:59:39 -04:00
Dzmitry Malyshau
d4f4e13501 Update README with some development instructions 2019-07-29 17:13:31 -04:00
Seivan Heidari
cfa1d4bc38 Exposing set_viewport() on RenderPass. 2019-07-29 22:52:08 +02:00
bors[bot]
3b336ef75b 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
5138c488c6 Replace Pod using zerocopy crate
See https://github.com/gfx-rs/wgpu/pull/256#issuecomment-515277497
2019-07-27 13:58:31 -04:00