Commit Graph

119 Commits

Author SHA1 Message Date
Dzmitry Malyshau
2c7d43ecc3 Version bump to 0.4 wgpu-v0.4.0 2019-11-03 21:40:55 -05:00
bors[bot]
d57b8cea29 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
547c5eddda skybox: log::debug and make rotation slower 2019-11-03 16:19:43 -08:00
bors[bot]
a020564667 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
ebd7adb72d docs: add skybox.gif to readme gallery 2019-11-03 00:05:10 -07:00
m4b
3972daf1fb 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]
ccc958e741 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
e0abf982e1 Update to wgpu-native b8d26c9186 2019-10-30 22:26:42 -04:00
bors[bot]
ed2c67f762 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
5123a5b800 Fix shadow sampling outside of the positive hemisphere 2019-10-24 12:28:37 -04:00
Dzmitry Malyshau
239885401c Refactor log crate usage 2019-10-24 12:26:58 -04:00
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