Commit Graph

901 Commits

Author SHA1 Message Date
bors[bot]
6e680d96a4 [rs] Merge #921
921: Update wgpu to eadaa1b7d8 r=kvark a=kvark

Picks up https://github.com/gfx-rs/wgpu/pull/1419, https://github.com/gfx-rs/wgpu/pull/1417, and https://github.com/gfx-rs/wgpu/pull/1403

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-06-01 13:10:49 +00:00
Dzmitry Malyshau
ac6276dfb5 [rs] Update wgpu to eadaa1b7d8 2021-06-01 09:02:19 -04:00
bors[bot]
cb18541221 [rs] Merge #918
918: Specify latest gfx release branch in README r=kvark a=grovesNL

Specify latest gfx release branch in README, to hopefully avoid people checking out `hal-0.2` then wondering why the patch doesn't seem to do anything.

Co-authored-by: Joshua Groves <josh@joshgroves.com>
2021-05-29 23:35:06 +00:00
Joshua Groves
2a42e73eef [rs] Specify latest gfx release branch in README 2021-05-29 14:56:56 -02:30
bors[bot]
bc70e1fd85 [rs] Merge #916
916: Update capture API r=kvark a=kvark

Picks up https://github.com/gfx-rs/wgpu/pull/1401

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-05-19 15:42:02 +00:00
Dzmitry Malyshau
3b7c6a9e00 [rs] Update capture API 2021-05-19 11:41:06 -04:00
bors[bot]
7a43516943 [rs] Merge #914
914:  Change the texture sample type for the cube example from Float to Uint r=kvark a=igowen

this is a rework of #764. i think wgpu supports everything we need for this now!



Co-authored-by: Ian Gowen <ian@gowen.cc>
2021-05-18 14:42:04 +00:00
Ian Gowen
29b1df51fc [rs] Change the texture sample type for the cube example from Float to Uint, and move the mandelbrot->color mapping functionality from the texel generation code to the fragment shader. 2021-05-18 10:33:15 -04:00
bors[bot]
2a7e07d94f [rs] Merge #909
909: Update naga to gfx-25 r=kvark a=kvark

Gets us arrayLength() in MSL

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-05-14 04:23:09 +00:00
Dzmitry Malyshau
2a0ea1d94b [rs] Update naga to gfx-25 2021-05-14 00:22:28 -04:00
bors[bot]
5b4623a112 [rs] Merge #907
907: Add feature request for wgpu-rs r=kvark a=cwfitzgerald

Thanks @JMS55 for bringing this to my attention in #906 

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-05-10 03:30:47 +00:00
Connor Fitzgerald
12f851c7b2 [rs] Add feature request for wgpu-rs 2021-05-09 17:57:43 -04:00
bors[bot]
b8c5b7ad97 [rs] Merge #905
905: Fill Out Issue Templates r=kvark a=cwfitzgerald

This adds issue templates, as well as links to the wgpu-core tracker and the discussion board. Hopefully this should reduce the amount of issues we have to transfer.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-05-09 04:10:49 +00:00
Connor Fitzgerald
9b57ce695f [rs] Fill out issue template 2021-05-08 21:29:41 -04:00
bors[bot]
212f3bc050 [rs] Merge #900
900: Fix initializing buffer with unaligned data r=grovesNL a=Uriopass

In wgpu 0.7, this was a valid operation, the zero padding was done by hand. 
In #872 this logic was removed as an optimization since buffers are already zero initialized, however the slice end was taken from buffer.slice which has to be aligned when mapped.

This is causing issues when trying to update imgui-wgpu-rs (https://github.com/Yatekii/imgui-wgpu-rs/issues/54) to  wgpu 0.8 since they  use U16 index buffers with odd lengths.

Co-authored-by: Pâris DOUADY <paris.douady@hotmail.fr>
2021-05-07 12:04:32 +00:00
Pâris DOUADY
8b79b056fa [rs] Fix initializing buffer with unaligned data
In wgpu 0.7, this was a valid operation, the zero padding was done by hand. 
However in #872 this was removed as an optimization since buffers are zero padded, however the slice end was taken from buffer.slice which has to be aligned when mapped.
2021-05-07 13:50:49 +02:00
bors[bot]
6d5b46b6d1 [rs] Merge #894
894: Skip mapping of zero sized buffers in create_buffer_init to avoid a panic and avoid creating an unused padded buffer r=kvark a=Imberflur



Co-authored-by: Imbris <imbrisf@gmail.com>
2021-05-04 02:34:56 +00:00
Imbris
bbc5ba3050 [rs] Skip mapping of zero sized buffers in create_buffer_init to avoid a panic and avoid creating an unused padded buffer 2021-05-03 22:22:49 -04:00
bors[bot]
e83e4ff501 [rs] Merge #880
880: Remove profiling dependency, bump version to 0.8 r=kvark a=kvark

Picks up https://github.com/gfx-rs/wgpu/pull/1355 and removes profiling markers from wgpu-rs. They don't show anything extra on top of wgpu-core markers, see https://github.com/gfx-rs/wgpu-rs/discussions/879

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-29 16:37:01 +00:00
Dzmitry Malyshau
b73887f17e [rs] Version bump to 0.8 2021-04-29 12:30:29 -04:00
Dzmitry Malyshau
3467c3a676 [rs] Remove profiling dependency 2021-04-29 12:30:29 -04:00
bors[bot]
85a1480959 [rs] Merge #850
850: Add uniform and storage buffer arrays r=kvark a=csnewman

**Connections**
https://github.com/gfx-rs/wgpu/pull/1315

**Description**
Adds uniform and storage buffer arrays

Usage:
```
wgpu::BindGroupEntry {
    binding: 0,
    resource: BindingResource::BufferArray(&[
        buffer1.as_entire_buffer_binding(),
        buffer2.as_entire_buffer_binding(),
    ]),
}
```



Co-authored-by: Chandler Newman <chandler2newman@hotmail.co.uk>
2021-04-29 16:18:52 +00:00
Chandler Newman
a267d0785d [rs] Add uniform and storage buffer arrays 2021-04-29 12:17:37 -04:00
bors[bot]
e1a56042c0 [rs] Merge #878
878: Update naga to gfx-23 r=kvark a=kvark

Picks up https://github.com/gfx-rs/wgpu/pull/1353 and https://github.com/gfx-rs/wgpu/pull/1354

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-26 16:17:09 +00:00
Dzmitry Malyshau
07a876c8d5 [rs] Update naga to gfx-23 2021-04-26 12:16:01 -04:00
bors[bot]
cd7ba87a2c [rs] Merge #876
876: Derive Default for PipelineLayoutDescriptor r=kvark a=dzil123



Co-authored-by: dzil123 <5725958+dzil123@users.noreply.github.com>
2021-04-23 17:28:06 +00:00
dzil123
360c3b3352 [rs] Derive Default for PipelineLayoutDescriptor 2021-04-23 03:49:36 -07:00
bors[bot]
7058299954 [rs] Merge #873
873: Boids example: cleaner rand code r=kvark a=dhardy

... for a certain definition of cleaner. Is this clearer or just more confusing?

Co-authored-by: Diggory Hardy <git@dhardy.name>
2021-04-22 13:50:05 +00:00
Diggory Hardy
935b06f3dd [rs] Boids example: cleaner rand code 2021-04-22 10:31:10 +01:00
bors[bot]
704d5d00b6 [rs] Merge #872
872: Remove zero padding from `create_buffer_init` r=kvark a=grovesNL

Follow-up to #870 (https://github.com/gfx-rs/wgpu-rs/pull/870#issuecomment-824333926)

Co-authored-by: grovesNL <josh@joshgroves.com>
2021-04-22 02:20:05 +00:00
grovesNL
73e7553df4 [rs] Remove zero padding from create_buffer_init
The buffer should already be zeroed so zeroing shouldn't be necessary
2021-04-21 23:03:40 -02:30
bors[bot]
64ac552a9a [rs] Merge #870
870: Remove dead code r=kvark a=dhardy

Also, why bother setting the padding bytes to 0?

Co-authored-by: Diggory Hardy <git@dhardy.name>
2021-04-21 18:04:32 +00:00
Diggory Hardy
d14d3b5cbd [rs] Remove dead code 2021-04-21 17:26:36 +01:00
bors[bot]
5d30d910a0 [rs] Merge #866
866: Update gfx and naga to gfx-22 r=kvark a=kvark

See https://github.com/gfx-rs/wgpu/pull/1339

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-19 22:15:51 +00:00
Dzmitry Malyshau
1ada1d8d24 [rs] Update gfx and naga to gfx-22 2021-04-19 18:15:14 -04:00
bors[bot]
8bd1ccb351 [rs] Merge #860
860: Drops the Sync requirement from UncapturedErrorHandler r=kvark a=adamnemecek



Co-authored-by: adamnemecek <adamnemecek@gmail.com>
2021-04-15 21:12:49 +00:00
bors[bot]
baf477ba10 [rs] Merge #861
861: Remove glslangvalidator requirements from water example r=kvark a=Gordon-F

`glslangvalidator` is no longer needed because the example uses WGSL.

Co-authored-by: Igor Shaposhnik <Gordon-F@users.noreply.github.com>
2021-04-15 20:57:15 +00:00
Igor Shaposhnik
fa86dd542c [rs] Remove glslangvalidator requirements from water example 2021-04-15 23:14:25 +03:00
adamnemecek
e9aa015a96 [rs] Drops the Sync requrement from UncapturedErrorHandler 2021-04-15 11:57:19 -07:00
bors[bot]
6d08986874 [rs] Merge #859
859: Fix typos - it's -> its r=cwfitzgerald a=ashpil

As I was reading the documentation, I found an instance where "it's" should actually be "its", as it is used as a possessive, not a contraction. I fixed that and `grep`ed for other instances, of which I found one and fixed as well.

Co-authored-by: ashpil <shpilenok2001@gmail.com>
2021-04-15 16:49:12 +00:00
ashpil
c4fdcbc190 [rs] Fix typos it's -> its 2021-04-15 12:39:16 -04:00
bors[bot]
9f812f3884 [rs] Merge #858
858: Update blend APIs r=kvark a=kvark

Picks up https://github.com/gfx-rs/wgpu/pull/1333

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-15 15:49:11 +00:00
Dzmitry Malyshau
b14215f468 [rs] Update blend APIs 2021-04-15 11:48:42 -04:00
bors[bot]
9c5e0eb5b8 [rs] Merge #857
857: updated wgpu with more copyable types r=kvark a=adamnemecek



Co-authored-by: adamnemecek <adamnemecek@gmail.com>
2021-04-14 20:42:37 +00:00
adamnemecek
9f6bfb2bab [rs] Updated wgpu version 2021-04-14 13:26:26 -07:00
Aaron Housh
ef4b2dd079 [rs] Add map alignment from wgpu-types (#853)
* Add map alignment, and fix staging belt aligning to it instead for validations

* bump wgpu versions
2021-04-13 09:44:59 -04:00
bors[bot]
2d5647f6d5 [rs] Merge #855
855: Remove comment about `Vec::remove_item` r=kvark a=Pat-Lafon

Sadly, `Vec::remove_item` was an unstable method that was deprecated and has now been removed.

https://github.com/rust-lang/rust/pull/80972

This pr removes a comment suggesting to use `Vec::remove_item` when it stabilizes.

Co-authored-by: Patrick LaFontaine <32135464+Pat-Lafon@users.noreply.github.com>
2021-04-13 05:23:42 +00:00
Patrick LaFontaine
9b67955046 [rs] Remove comment about Vec::remove_item 2021-04-13 00:01:17 -04:00
bors[bot]
fc59ea4aba [rs] Merge #851
851: Update naga to gfx-21 r=kvark a=kvark

See https://github.com/gfx-rs/wgpu/pull/1320

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-11 05:26:26 +00:00
Dzmitry Malyshau
9bd4b34d5a [rs] Update naga to gfx-21 2021-04-11 01:25:42 -04:00