Commit Graph
51 Commits
Author SHA1 Message Date
Dzmitry Malyshau bc7b842f12 Moving the code to use the new tracker API 2019-06-12 12:27:53 -04:00
John W. Bruce 057719fdf5 Add Naïve Debug Derives Where Possible
This adds #[derive(Debug)] to all public structs and enums possible.
This also required adding it to some private types that they
transitively depend on. However, the following types depend on types
from external crates that do not implement Debug:

* device::Device
* hub::Hub
* swap_chain::Surface
* swap_chain::SwapChain

To support these types, we would need to use either custom Debug impls
or something like Derivative.

This helps improve the situation in #76.
2019-06-07 14:19:05 -07:00
Fabio Krapohl 488367ce30 More consistent naming of pointer-size-pairs:
* always plural form without _ptr suffix for pointers
* always same name as pointer for size, but with _length suffix
* special case: single size applies to multiple pointers => only use length as name
2019-06-04 21:41:39 +00:00
Alexis Sellier 6794333dba Expose and validate buffer offset alignment 2019-06-01 20:25:12 +02:00
Dzmitry Malyshau 9c408f919c Hook up rendy-descriptor 2019-05-30 08:35:34 -04:00
Dzmitry Malyshau a6bc4420eb Don't early out on pipeline binding 2019-05-29 23:49:29 -04:00
Dzmitry Malyshau 4446b81f3e Fix compute pass barriers 2019-05-26 23:55:23 -04:00
Dzmitry Malyshau 2564332f3d Change dynamic and vertex buffer offsets to u64 2019-05-23 11:25:10 -04:00
bors[bot]andDzmitry Malyshau a056d2478a Merge #175
175: API update with naming, formats, and extra fields  r=grovesNL a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2019-05-15 07:31:42 +00:00
Dzmitry Malyshau 1875523a6a Rust formatting pass 2019-05-14 13:00:00 -04:00
Dzmitry Malyshau a6f3637c0c Debug labels 2019-05-14 12:49:10 -04:00
Dzmitry Malyshau 40ec1ac4c1 Fix command buffer and surface locking order 2019-05-14 11:13:08 -04:00
Dzmitry Malyshau 61fca00f34 Remove wgpu-bindings in favor of configuration scripts 2019-04-30 12:45:05 -04:00
Alexis Sellier c468840eee Support dynamic offsets
Closes #125

* Add support for dynamic offsets when setting a bind group.
* Add new binding types: `UniformBufferDynamic` and `StorageBufferDynamic`
2019-04-26 22:20:54 +02:00
Atul Bhosale af38d79d79 Format code using 'cargo fmt' 2019-04-26 22:01:47 +05:30
Dzmitry Malyshau a8a6b45c9a Rename expectation to LayoutChange 2019-03-31 20:00:52 -04:00
Dzmitry Malyshau 006d40a4b5 Track bind group compatibility across the whole pipeline 2019-03-31 16:04:37 -04:00
Dzmitry Malyshau 5923deff6e Validate bind group compatibility 2019-03-31 16:03:08 -04:00
Dzmitry Malyshau 0b51c8a9d2 Clean up use statements.
Use copyless::VecHelper and ArrayVec for some things.
Refactor map_buffer internals.
2019-03-21 12:05:53 -04:00
Tristam MacDonald 1fe59e71db run cargo fmt 2019-03-05 20:41:24 -08:00
Dzmitry Malyshau 76473bb38a Stitch mode for insert_barriers 2019-02-26 23:56:38 -05:00
Dzmitry Malyshau cc5900b160 Refactor the view tracker 2019-02-26 23:05:36 -05:00
Dzmitry Malyshau 0d59c16f16 Refactor insert_barriers 2019-02-26 22:55:04 -05:00
Dzmitry Malyshau 5b129704a0 Storage indexing 2019-02-26 10:27:51 -05:00
Dzmitry Malyshau e16ceafb81 Epoch tracking of indices 2019-02-26 10:12:11 -05:00
Dzmitry Malyshau c21420399a Refactored tracking, now includes the views 2019-02-22 12:59:29 -05:00
Dzmitry Malyshau 855bcfe176 Resource destruction refactoring, hook up to rust 2019-02-21 08:42:57 -05:00
Dzmitry Malyshau 2e21285434 Separate object identity from storage 2019-02-14 14:28:55 -05:00
Dzmitry Malyshau edf269dbed Remove the non-winit path from the example 2019-01-22 17:10:08 -08:00
Dzmitry Malyshau 4f939bc32f Bind group resource transitions 2019-01-21 16:18:56 -05:00
Dzmitry Malyshau dee685aa0c native: bind groups for both compute and graphics 2019-01-21 16:18:56 -05:00
Dzmitry Malyshau 6699f4bed1 native: Abstract the binding tracker into a separate module 2019-01-21 16:18:56 -05:00
Dzmitry Malyshau 3ed4620c1f Bind compute groups if layout is matching 2019-01-21 16:18:56 -05:00
Dzmitry Malyshau fb6a91589e native: simple bind group creation 2019-01-21 16:18:56 -05:00
Dzmitry Malyshau ba8828eb5b Refactor includes, collect swapchain links on RP begin 2019-01-15 09:09:29 -05:00
porky11 b61298a884 remove some unnecessary and 2019-01-12 20:11:27 +01:00
porky11 6f3499ecae port to 2018 edition 2019-01-12 19:58:24 +01:00
porky11 a5a5b88014 use rustfmt for formatting after edits 2019-01-12 19:15:48 +01:00
porky11 6675a4d3e4 update to current version of gfx 2019-01-12 19:03:17 +01:00
Dzmitry Malyshau d4c415f666 Improve locking safety for Registry 2018-11-27 11:06:22 -05:00
Michael-Lai fx 0a4a71b345 Add no_mangle to extern "C" fn 2018-11-12 11:41:34 +08:00
Dzmitry Malyshau 39186c9c7b Add reference counting to objects 2018-11-02 16:45:10 -04:00
Dzmitry Malyshau 5462690c4a Chain multiple native command buffers per logical one 2018-10-18 16:27:35 -04:00
Dzmitry Malyshau 45def95763 native: basic compute resource binding 2018-10-02 21:41:10 -04:00
Dzmitry Malyshau dd681d2c77 Compute dispatch call 2018-10-02 21:41:10 -04:00
Dzmitry Malyshau d713f3e380 Consolidate all the registries together 2018-10-02 12:18:54 -04:00
Dzmitry Malyshau 1fd05608fb native: compute pass boilerplate 2018-10-02 11:43:26 -04:00
Dzmitry Malyshau 212cc386f3 wgn: command pools and buffer creation 2018-09-27 15:43:19 -04:00
grovesNL 105a71d19a Format all files 2018-09-22 16:55:01 -06:00
grovesNL 5759f769b0 Add initial bindings 2018-09-22 16:54:19 -06:00