Commit Graph

204 Commits

Author SHA1 Message Date
mitchmindtree
ebf97c2843 [rs] Derive Hash and PartialEq for unique identifier wrapper types
This is particularly useful downstream for distinguishing between
instances of these types.

I was unsure about `Device` as I noticed it has a `Temp` field that
looks like it might eventually store some non-PartialEq/Hash-friendly
fields.

Let me know if you'd like me to add a derive for `Device` or if there
are any issues with those I have updated.
2020-03-15 18:43:16 +01:00
bors[bot]
16855f6a7c [rs] Merge #192
192: Explicitly declare vertex attribute descriptors in cube example r=kvark a=aloucks

The new `vertex_attr_array!` macro is pretty wonderful, but it's nice to have at least one reference example of how `VertexAttributeDescriptor`s are constructed. 

Co-authored-by: Aaron Loucks <aloucks@cofront.net>
2020-03-08 23:37:25 +00:00
Aaron Loucks
738653d1fe [rs] Explicitly declare vertex attribute descriptors in cube example 2020-03-07 23:37:32 -05:00
Dzmitry Malyshau
a332377222 [rs] Add grr-2d 2020-03-06 11:38:54 -05:00
Dzmitry Malyshau
ae045edcb6 [rs] Add nannou to the friends list 2020-03-05 23:45:24 -05:00
bors[bot]
2388007d1a [rs] Merge #189
189: Reexport Backend and DeviceType from wgpu-core r=kvark a=aloucks

These types are exposed on the `AdaptorInfo` struct.

Co-authored-by: Aaron Loucks <aloucks@cofront.net>
2020-03-05 15:02:13 +00:00
Aaron Loucks
b2e70cc3d3 [rs] Reexport Backend and DeviceType from wgpu-core
These types are exposed on the `AdaptorInfo` struct.
2020-03-04 22:22:26 -05:00
bors[bot]
3cfb78d372 [rs] Merge #185
185: Update readme r=kvark a=grovesNL

Add logo and update readme text a bit (link to WASM progress, reword examples section slightly, etc.)

[Rendered](ea4bf79ff7/README.md)

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-03-03 17:36:51 +00:00
Joshua Groves
39072c80d4 [rs] Update readme 2020-03-03 00:34:24 -03:30
bors[bot]
e09b8d58a7 [rs] Merge #184
184: added test to hello-compute example r=kvark a=emmetthebarnraiser

I wasn't exactly sure of the proper way to test async stuff, but this is a strategy that seemed to work for me. Let me know if there is anything you would like me to change, or if this isn't something that you would like to add to the examples!

Co-authored-by: Brian Frazho <befrazho@gmail.com>
2020-03-01 02:43:59 +00:00
Brian Frazho
18b2ae1935 [rs] added test to hello-compute example 2020-02-28 20:50:28 -05:00
bors[bot]
609b745153 [rs] Merge #183
183: Expose `enumerate_adapters`. r=kvark a=daxpedda

Depends on gfx-rs/wgpu#505.

Use case was to give end user the ability to choose which GPU to use for an application.

Co-authored-by: daxpedda <daxpedda@gmail.com>
2020-02-27 12:36:40 +00:00
daxpedda
f77ce1bec1 [rs] Update wgpu dependency. 2020-02-27 00:45:02 +01:00
daxpedda
d584105943 [rs] Expose enumerate_adapters. 2020-02-26 16:35:31 +01:00
Dzmitry Malyshau
132b67898f [rs] Add oxidator to the readme 2020-02-22 22:28:14 -05:00
bors[bot]
f387fbb310 [rs] Merge #181
181: Fix vertex_attr_macro self invocation paths r=kvark a=kvark

Follow-up to #179 
cc @dhardy 

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-02-20 18:11:09 +00:00
Dzmitry Malyshau
5490914f19 [rs] Fix vertex_attr_macro self invocation paths 2020-02-20 13:10:14 -05:00
bors[bot]
dabdd8ee52 [rs] Merge #179
179: Add vertex_attr_array macro r=kvark a=dhardy

Specifying `VertexAttributeDescriptor` arrays is tedious, and for no good reason. This PR adds a macro to do the job.

All examples tested. Documentation is short but better than the standard for this crate I feel. 😉



Co-authored-by: Diggory Hardy <git@dhardy.name>
2020-02-20 14:38:46 +00:00
Diggory Hardy
028be69693 [rs] Add vertex_attr_array macro 2020-02-20 09:32:38 +00:00
bors[bot]
d85f8030c2 [rs] Merge #177
177: wgpu update with DynamicOffset r=trivial a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-02-17 02:50:43 +00:00
Dzmitry Malyshau
069d7cdc98 [rs] wgpu update with DynamicOffset 2020-02-16 21:49:56 -05:00
Dzmitry Malyshau
917e29754b [rs] Add Conrod to the friends list 2020-02-12 02:50:27 +01:00
bors[bot]
a96b2d6b1e [rs] Merge #174
174: Update wgpu and disable no_redirection_bitmap r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-02-10 00:28:37 +00:00
Dzmitry Malyshau
be4e88cafd [rs] Update wgpu revision 2020-02-09 19:25:41 -05:00
Dzmitry Malyshau
ebb7366f3d [rs] Disable no_redirection_bitmap on Windows 2020-02-09 19:25:34 -05:00
bors[bot]
24710207cb [rs] Merge #169
169: Disable window bitmap redirection r=kvark a=kvark

That sets `WS_EX_NOREDIRECTIONBITMAP`. According to @raphlinus, makes our resize better :)
There are still strange pauses I see on resizing with DX12 (with and without the change), to be followed-up.

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-02-02 05:27:45 +00:00
Dzmitry Malyshau
6e9145b71f [rs] Disable window bitmap redirection 2020-02-02 00:21:51 -05:00
bors[bot]
0ecc0f307e [rs] Merge #168
168: Enforce life times of render pass attachments r=kvark a=kvark

Fixes #167

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-01-31 20:30:58 +00:00
Dzmitry Malyshau
109d5e184d [rs] Enforce life times of render pass attachments 2020-01-31 13:18:46 +01:00
bors[bot]
31edc4209f [rs] Merge #166
166: Reduce Rust requirements for Pin usage r=auto a=kvark

That lowers Rust requirement from 1.39 to 1.33
Important, since Ubuntu packages are still on 1.37

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-01-24 01:02:23 +00:00
Dzmitry Malyshau
37a8217163 [rs] Reduce Rust requirements for Pin usage 2020-01-23 20:01:01 -05:00
bors[bot]
851542a26f [rs] Merge #165
165: Update wgpu-core r=trivial a=kvark



Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-01-24 00:14:55 +00:00
Dzmitry Malyshau
ae66c0d9f4 [rs] Update wgpu-core 2020-01-23 19:14:16 -05:00
bors[bot]
cf049fbc18 [rs] Merge #155
155: Update wgpu dependency r=grovesNL a=kvark

(needs an actual bump)

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-01-16 06:28:21 +00:00
Dzmitry Malyshau
b7c4ae78f9 [rs] wgpu commit update 2020-01-15 11:06:49 -05:00
Dzmitry Malyshau
32ea1638fc [rs] Enforce lifetimes of resource dependencies of passes 2020-01-15 11:06:19 -05:00
Dzmitry Malyshau
89dbdc8130 [rs] Update to wgpu version with raw passes 2020-01-15 11:06:19 -05:00
bors[bot]
e80d6ab1e7 [rs] Merge #161
161: Update wgpu and winit r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-01-13 18:20:47 +00:00
Dzmitry Malyshau
d0dc3f7a95 [rs] Update wgpu and winit 2020-01-13 13:20:13 -05:00
Dzmitry Malyshau
469a7918e4 [rs] Update wgpu dependency 2020-01-13 12:45:52 -05:00
bors[bot]
8f1e7139d1 [rs] Merge #153
153: Update readme badges r=kvark a=rukai

Adds docs.rs badge link and replaces gitter badge with a matrix badge.

Looks like the the matrix room needs to be more public or else i've somehow messed up the matrix room name in the badge url.

Co-authored-by: Rukai <rubickent@gmail.com>
2020-01-13 15:16:49 +00:00
Rukai
ea50583a54 [rs] Update readme badges 2020-01-14 00:01:16 +11:00
bors[bot]
39e167d4d6 [rs] Merge #157
157: Handle resizing in hello-triangle r=kvark a=quadrupleslap

Nothing gets drawn on my computer unless the swap chain is resized along with the window.

```
$ uname -a
Linux red 5.3.7-arch1-1-ARCH #1 SMP PREEMPT Fri Oct 18 00:17:03 UTC 2019 x86_64 GNU/Linux
$ wmctrl -m
Name: bspwm
Class: wm
PID: 665
Window manager's "showing the desktop" mode: N/A
```

Co-authored-by: Ram Kaniyur <quadrupleslap@gmail.com>
2020-01-12 20:04:25 +00:00
bors[bot]
1592567596 [rs] Merge #158
158: Accept DOS line endings in examples/boids r=kvark a=quadrupleslap

Resolves #150.

Co-authored-by: Ram Kaniyur <quadrupleslap@gmail.com>
2020-01-12 19:51:11 +00:00
Ram Kaniyur
3f94dcf621 [rs] Accept DOS line endings in examples/boids 2020-01-11 12:55:51 +11:00
Ram Kaniyur
b10b76f95c [rs] Handle resizing in hello-triangle 2020-01-11 11:53:31 +11:00
bors[bot]
6a746ac540 [rs] Merge #154
154: Use exact version for winit alpha r=kvark a=grovesNL

Use exact version for winit alpha to avoid issues when new alphas are published (rust-windowing/winit#1362)

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-01-05 21:51:55 +00:00
Joshua Groves
efb1d56dfe [rs] Use exact version for winit alpha 2020-01-05 10:06:18 -03:30
bors[bot]
9497bac0e1 [rs] Merge #152
152: Update to latest winit (0.20.0-alpha6) r=kvark a=grovesNL

Updated to latest winit to fix examples:
- `RedrawRequested` is now used for rendering
- `EventsCleared` replaced by `MainEventsCleared` which requests redraw
- Removed Metal auto-capture and escape key handling from hello-triangle to simplify the example slightly (it doesn't use `framework`, so we should try to make it as simple as possible IMO)

Should we also remove the `feature = gl` parts of the examples to simplify them until GL is reenabled?

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-01-05 03:03:37 +00:00
Joshua Groves
17b82f6d01 [rs] Disable Travis cache 2020-01-04 23:10:28 -03:30