Commit Graph
893 Commits
Author SHA1 Message Date
Dzmitry Malyshau eeda6dcdfd Bump version to 0.5.5 and add a changelog entry 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 8be87d9ead Vecmap dependency update to 0.8.1 2020-05-20 23:45:06 -04:00
skierpage 5be1dd550e use unambigous ISO8601 format for dates
06-04-2020 is in the future for ~400 million people.
Oblig. XKCD https://xkcd.com/1179/ 😉
2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 80d4b938e4 Proper maintenance of the command pools 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 367e09a022 Save bind group layout inside pipeline layouts 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 14d44c2d84 Wait for idle before destroying swapchains 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 7ee02f4987 Properly destroy swap chains 2020-05-20 23:45:06 -04:00
Paul Kernfeld 2f0d62c54c Make assertions more verbose in src/command
This contributes to #485
2020-05-20 23:45:06 -04:00
mitchmindtree fa7b04d0ea Implement From<TextureFormat> for TextureComponentType 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 74acda9e11 Don't drop the Global on panic 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau daaef24b15 Keep Adapter alive by the device 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau 886d8b4c70 Split limits and private features, add tracing module 2020-05-20 23:45:06 -04:00
Dzmitry Malyshau dc888446a3 Version bump tp 0.5.4 2020-04-25 00:17:50 -04:00
Dzmitry Malyshau 2fca1d71f7 Use General allocator at all times for now 2020-04-25 00:17:50 -04:00
Dzmitry Malyshau 9fa60ab566 Minor error reporting fixes (#607) 2020-04-25 00:17:50 -04:00
Dzmitry Malyshau b71bcc5349 Add is_power_of_two function (#603) 2020-04-25 00:17:50 -04:00
Aron Granberg 11a321131f Improve error messages for mismatched binding types (#593) 2020-04-25 00:17:50 -04:00
d937742da7 Merge #599
599: [0.5] texture storage read fix r=kvark a=kvark

This is blocked on @cwfitzgerald confirming/denying if this is a proper fix for https://github.com/gfx-rs/wgpu-rs/issues/253

Co-authored-by: Almar Klein <almar.klein@gmail.com>
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
wgpu-core-v0.5.3
2020-04-19 02:32:12 +00:00
Dzmitry Malyshau 47336441e5 Version bump to 0.5.3 and changelog update 2020-04-18 17:02:54 -04:00
Dzmitry Malyshau 8dcaf05649 Fix host mapping buffer barriers 2020-04-18 17:02:54 -04:00
Dzmitry Malyshau 5235547a3a Enable READ access for texture storage 2020-04-18 14:19:53 -04:00
Dzmitry Malyshau acfa8ecb35 Derive swapchain layout off the load operation 2020-04-18 14:19:43 -04:00
Almar Klein 754b465818 Warn when binding a buffer that is still mapped 2020-04-18 14:19:33 -04:00
88710e899d Merge #590
590: [0.5] Various correctness fixes r=kvark a=kvark

Includes the pipeline layout fix, read-only usage fix, and the improved error messages.
Everything is backwards-compatible.

Co-authored-by: Aron Granberg <aron.granberg@gmail.com>
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-15 23:02:32 +00:00
Dzmitry Malyshau 3cd7376abe Version bump to 0.5.2 and CHANGELOG update wgpu-core-v0.5.2 2020-04-15 18:59:18 -04:00
Aron Granberg 78b4ccfb97 Improve drawing error messages 2020-04-15 18:56:25 -04:00
Aron Granberg b51162c2c6 Improve error messages when passing buffers with the wrong usage flags 2020-04-15 18:55:59 -04:00
Dzmitry Malyshau fe92b3fec9 Track pipeline layout lifetime 2020-04-15 18:54:50 -04:00
Dzmitry Malyshau 2a535d24c3 Fix buffer unmap warning 2020-04-15 18:54:29 -04:00
Dzmitry Malyshau be49ffae9c Comment fixes, header update 2020-04-15 18:54:14 -04:00
Dzmitry Malyshau 9c49a8c3d5 Fix read-only flags 2020-04-15 18:53:33 -04:00
Aron Granberg e0485b49ac Improve error message when bind group and bind group layout have different number of entries 2020-04-15 18:53:19 -04:00
bors[bot]andDzmitry Malyshau 83d49815ed Merge #566
566: [0.5] tracking improvements r=kvark a=kvark

Sibling of #565
The code is mostly new tests :)

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-10 05:48:26 +00:00
Dzmitry Malyshau 1303d4907c Version bump to 0.5.1 wgpu-core-v0.5.1 2020-04-10 00:43:21 -04:00
Dzmitry Malyshau ee6ef901e5 Fix tracking of the initial state during replacement.
When multiple "replace" style transitions are happening,
we weren't properly retaining the "first" state, which
is required for proper stitching of command buffers.

This logic is fixed and fortified with a new set of
"change" and "merge" tests in the track module.
2020-04-10 00:40:49 -04:00
Dzmitry Malyshau 3e7682757d Refactor tracking of swapchain images as attachments
We were improperly detecting if a swapchain image has already
been used by a command buffer. In this case, we need to assume
that it's already in the PRESENT state.
2020-04-10 00:40:42 -04:00
bors[bot]andDzmitry Malyshau 77d95f5ecd Merge #556
556: Preparations for wgpu-0.5 release r=grovesNL a=kvark

Based on #555 

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-06 12:57:11 +00:00
Dzmitry Malyshau 7dba052900 Version bump and CHANGELOG update wgpu-types-v0.5.0 wgpu-core-v0.5.0 2020-04-06 08:55:39 -04:00
Dzmitry Malyshau a3aefe2535 Rustfmt stable pass 2020-04-06 08:55:39 -04:00
bors[bot]andRukai 384606f2e2 Merge #555
555: Use crates.io release of peek-poke r=kvark a=kvark

Closes #549 

Co-authored-by: Rukai <rubickent@gmail.com>
2020-04-06 03:09:12 +00:00
Rukai 99161cbeb5 Use crates.io release of peek-poke 2020-04-05 23:06:02 -04:00
bors[bot]andDzmitry Malyshau d6d31695d3 Merge #553
553: Fix order of maintenace between submission tracking and buffer mapping. r=kvark a=kvark

Fixes https://github.com/gfx-rs/wgpu-rs/issues/237

Logic needs to have the following order:
  1. we first wait for the device to finish
  2. then we move some tracked resources from per-submission lists into the "ready to destroy" or "ready to map" lists.
  3. then we handle mapping, which goes through "ready to map" lists
  4. then we destroy everything for realz that needs to be

That order got broken with #547

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-05 21:54:16 +00:00
bors[bot]andKunal Mohan 8f9f13fc8c Merge #550
550: Add check for bound pipeline r=kvark a=kunalmohan

fix #456
Validate that a pipeline is bound before issuing any draw/dispatch call.

Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com>
2020-04-05 19:58:26 +00:00
Dzmitry Malyshau 00c98e7d5a Fix order of maintenace between submission tracking and buffer mapping. 2020-04-05 14:39:10 -04:00
Kunal Mohan aef0c7c2c4 Add check for bound pipeline
fix #456
Validate that a pipeline is bound before issuing
draw/dispatch call.
2020-04-05 11:16:50 +05:30
bors[bot]andDzmitry Malyshau 902a0ebca3 Merge #546
546: NonZero internal Id representation r=grovesNL a=kvark

Fixes  #544
Based on #545 
Blocked by https://github.com/eqrion/cbindgen/issues/500

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-04-04 23:43:53 +00:00
Dzmitry Malyshau f07943f2d8 Use NonZeroU64 for Id 2020-04-04 19:43:16 -04:00
bors[bot]andKunal Mohan 09beda1942 Merge #547
547: Add BufferMapState r=kvark a=kunalmohan

WIP for issue #395 

Co-authored-by: Kunal Mohan <kunalmohan99@gmail.com>
2020-04-03 03:50:22 +00:00
Kunal Mohan fb1c448aa9 Add BufferMapState enum
fix #395
Add BufferMapState enum to track the state of buffer
mapping and store any mapping details in case one is
pending.
2020-04-03 07:55:23 +05:30
bors[bot]andDzmitry Malyshau 05ba7a50b4 Merge #545
545: Check surface compatibility r=grovesNL a=kvark

Addresses https://github.com/gfx-rs/wgpu-rs/issues/224
Follows the proposal of https://github.com/webgpu-native/webgpu-headers/pull/39

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2020-03-31 04:02:24 +00:00