Commit Graph

211 Commits

Author SHA1 Message Date
bors[bot]
a1ffa74308 Merge #202
202: Remove `Hash` for ID types r=kvark a=grovesNL

Reverts some of the `Hash` derives added in #200 because we don't have a good way to support `Hash` for JavaScript objects (for the web backend) at the moment. JavaScript objects don't have a unique identifier that we can use for `Hash`, so any solution here would probably mean adding our own map of JS object<->unique ID.

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2020-03-16 13:59:17 +00:00
Joshua Groves
d1371dbe37 Remove Hash for ID types 2020-03-16 08:53:51 -02:30
bors[bot]
a96a5faa24 Merge #200
200: Derive `Hash` and `PartialEq` for unique identifier wrapper types r=kvark a=mitchmindtree

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.

Co-authored-by: mitchmindtree <mitchell.nordine@gmail.com>
2020-03-15 23:18:13 +00:00
bors[bot]
76ffea3172 Merge #201
201: Add note that `slot` refers to the index in RenderPipelineDescriptor r=kvark a=aloucks

Add note that `slot` refers to the index in `RenderPipelineDescriptor::vertex_buffers`

Also fixed intra-doc links for `set_vertex_buffer`.

Co-authored-by: Aaron Loucks <aloucks@cofront.net>
2020-03-15 23:04:27 +00:00
Aaron Loucks
2425312660 Add note that slot refers to the index in RenderPipelineDescriptor::vertex_buffers
Also fixed intra-doc links for `set_vertex_buffer`.
2020-03-15 15:38:31 -04:00
bors[bot]
9a67ce1e64 Merge #197
197: Update for the latest spec changes r=grovesNL a=kvark

Blocked on https://github.com/gfx-rs/wgpu/pull/518

Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
2020-03-15 18:41:29 +00:00
mitchmindtree
cf5fcc4037 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
Dzmitry Malyshau
d842432d17 Update for the latest spec changes 2020-03-15 11:25:06 -04:00
bors[bot]
a7b0d5ae5b 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
d93293f58e Explicitly declare vertex attribute descriptors in cube example 2020-03-07 23:37:32 -05:00
Dzmitry Malyshau
8df9577b50 Add grr-2d 2020-03-06 11:38:54 -05:00
Dzmitry Malyshau
2617b82ac8 Add nannou to the friends list 2020-03-05 23:45:24 -05:00
bors[bot]
82aff01a53 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
89fda33142 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]
6f212b9834 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
ea4bf79ff7 Update readme 2020-03-03 00:34:24 -03:30
bors[bot]
2374b8ec9d 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
3899fdb214 added test to hello-compute example 2020-02-28 20:50:28 -05:00
bors[bot]
8144809196 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
a1e429eabe Update wgpu dependency. 2020-02-27 00:45:02 +01:00
daxpedda
a9c7a0f5ef Expose enumerate_adapters. 2020-02-26 16:35:31 +01:00
Dzmitry Malyshau
fabb0fd794 Add oxidator to the readme 2020-02-22 22:28:14 -05:00
bors[bot]
3746483937 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
9f129baef3 Fix vertex_attr_macro self invocation paths 2020-02-20 13:10:14 -05:00
bors[bot]
cdb6d0d390 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
dca51ce676 Add vertex_attr_array macro 2020-02-20 09:32:38 +00:00
bors[bot]
d2425783a3 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
17214fe986 wgpu update with DynamicOffset 2020-02-16 21:49:56 -05:00
Dzmitry Malyshau
8b13a10d2d Add Conrod to the friends list 2020-02-12 02:50:27 +01:00
bors[bot]
35dae838d4 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
400b587c31 Update wgpu revision 2020-02-09 19:25:41 -05:00
Dzmitry Malyshau
b588345568 Disable no_redirection_bitmap on Windows 2020-02-09 19:25:34 -05:00
bors[bot]
538e15f793 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
3a9113c962 Disable window bitmap redirection 2020-02-02 00:21:51 -05:00
bors[bot]
874950c30c 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
db8109f566 Enforce life times of render pass attachments 2020-01-31 13:18:46 +01:00
bors[bot]
d512e3c6f9 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
a192f31aad Reduce Rust requirements for Pin usage 2020-01-23 20:01:01 -05:00
bors[bot]
e77cab1a8d 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
c4be01cb9c Update wgpu-core 2020-01-23 19:14:16 -05:00
bors[bot]
911fb30046 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
e46f0e2860 wgpu commit update 2020-01-15 11:06:49 -05:00
Dzmitry Malyshau
25584eb263 Enforce lifetimes of resource dependencies of passes 2020-01-15 11:06:19 -05:00
Dzmitry Malyshau
46bd6db78a Update to wgpu version with raw passes 2020-01-15 11:06:19 -05:00
bors[bot]
c0ee9c96f4 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
37094051b5 Update wgpu and winit 2020-01-13 13:20:13 -05:00
Dzmitry Malyshau
064a387a52 Update wgpu dependency 2020-01-13 12:45:52 -05:00
bors[bot]
b8a057e116 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
299a76b9e5 Update readme badges 2020-01-14 00:01:16 +11:00
bors[bot]
f9026595c0 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