Commit Graph
21 Commits
Author SHA1 Message Date
Dzmitry Malyshau cc16b4b65a Fix binding compatibility checks 2019-08-31 00:56:05 -04:00
Dzmitry Malyshau 872bf21a9b Fix descriptor set offsets binding on pipeline change 2019-08-31 00:56:05 -04:00
Dzmitry Malyshau b414b9f373 Formatting pass 2019-08-27 21:11:07 -04:00
Dzmitry Malyshau e84ae4a4b2 Feature-less backend selection
This PR removes optional backend features in favor of run-time
selection at the `request_adapter` entry point. Adapters from all
supported gpu backends on the platform are reported.

It also makes gfx-rs dependency to be public (for now).
2019-08-27 20:55:49 -04:00
David 074b1d7dee Use extend_from_slice instead of copy_from_slice 2019-08-05 07:40:06 +02:00
Dzmitry Malyshau 41d0ce14d6 Rebind with proper dynamic offsets 2019-07-22 00:16:29 -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
Dzmitry Malyshau 2564332f3d Change dynamic and vertex buffer offsets to u64 2019-05-23 11:25:10 -04:00
Dzmitry Malyshau 1875523a6a Rust formatting pass 2019-05-14 13:00:00 -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 e16ceafb81 Epoch tracking of indices 2019-02-26 10:12:11 -05:00
Dzmitry Malyshau 2e21285434 Separate object identity from storage 2019-02-14 14:28:55 -05: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