Hackpoetic
fb87e4fa84
[rs] add missing rust format config
2020-04-11 00:05:18 -04:00
Hackpoetic
1927fe6586
[rs] cargo fmt the code and tweak format rules
2020-04-10 22:56:24 -04:00
Igor Shaposhnik
877e0016eb
[rs] Migrate CI to GitHub Actions
2020-04-10 10:59:21 -04:00
bors[bot] and Dzmitry Malyshau
6b627451bc
Merge #565
...
565: Usage tracking fixes for swapchain and command buffers r=kvark a=kvark
Fixes #561
see description in commit messages
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-04-10 04:40:15 +00:00
Dzmitry Malyshau
920c00931d
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:39:23 -04:00
Dzmitry Malyshau
74e9e89fe7
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:38:53 -04:00
bors[bot] and Dzmitry Malyshau
65a0f4afa0
Merge #560
...
560: Update ffi for wgpu-remote r=kvark a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-04-09 16:18:55 +00:00
bors[bot] and Joshua Groves
bea1935c75
[rs] Merge #249
...
249: Derive `Default` for `CommandEncoderDescriptor` r=kvark a=grovesNL
Fixes #243
Co-authored-by: Joshua Groves <josh@joshgroves.com >
2020-04-09 13:29:16 +00:00
bors[bot] and Héctor Ramón Jiménez
20ce74df41
[rs] Merge #245
...
245: Check `cargo doc` in CI r=kvark a=hecrj
This PR makes CI run `cargo doc` using the latest nightly.
It is currently panicking here:
https://github.com/rust-lang/rust/blob/6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257/src/librustdoc/passes/mod.rs#L411
I thought it was an incorrect link causing it, but the issue seems to persist even after fixing the link.
__Update__: Issue opened upstream by @grovesNL (https://github.com/rust-lang/rust/issues/70874 ).
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com >
2020-04-09 04:18:15 +00:00
Héctor Ramón Jiménez
546f9e31a5
[rs] Fix RenderPass::set_vertex_buffer doc link
2020-04-09 06:07:20 +02:00
Héctor Ramón Jiménez
359f80dec3
[rs] Check cargo doc in CI
2020-04-09 06:07:17 +02:00
Joshua Groves
0fb2e78651
[rs] Derive Default for CommandEncoderDescriptor
2020-04-09 00:55:45 -02:30
bors[bot] and Aaron Loucks
0d5442d1c0
Merge #562
...
562: Increase default maximum vertex buffer inputs from 8 to 16 r=kvark a=aloucks
Additionally, the input states are now stored in a `SmallVec` to enable higher limits.
Fixes #558
Co-authored-by: Aaron Loucks <aloucks@cofront.net >
2020-04-08 13:49:35 +00:00
Dzmitry Malyshau
ee2e56446c
Update ffi for wgpu-remote
2020-04-07 22:16:46 -04:00
Aaron Loucks
b6ec8440e9
Increase default maximum vertex buffer inputs from 8 to 16
...
Additionally, the input states are now stored in a `SmallVec` to
enable higher limits.
Fixes #558
2020-04-07 21:00:06 -04:00
bors[bot] and Dzmitry Malyshau
d1efc5d028
[rs] Merge #241
...
241: Version bump to 0.5 r=kvark a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-04-06 13:55:34 +00:00
Dzmitry Malyshau
de89c89627
[rs] Version bump to 0.5
2020-04-06 09:10:28 -04:00
bors[bot] and Dzmitry 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] and Rukai
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] and Dzmitry 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] and Kunal 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] and Dzmitry Malyshau
17e8c6f1f2
[rs] Merge #236
...
236: Update to wgpu-core with Option<Id> r=kvark a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-04-05 03:33:29 +00:00
Dzmitry Malyshau
ebe7c27e8c
[rs] Update to wgpu-core with Option<Id>
2020-04-04 23:32:37 -04:00
bors[bot] and Dzmitry 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] and William Lundstedt
5b6754eecb
[rs] Merge #234
...
234: Implement Send and Sync for BufferReadMapping and BufferWriteMapping r=kvark a=Healthire
Co-authored-by: William Lundstedt <walundstedt@gmail.com >
2020-04-03 13:03:47 +00:00
William Lundstedt
87f2f3658d
[rs] Implement Send and Sync for BufferReadMapping and BufferWriteMapping
2020-04-03 14:59:09 +02:00
bors[bot] and Kunal 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] and Dzmitry Malyshau
8452a76854
[rs] Merge #232
...
232: Update to latest wgpu, duplicate RequestAdapterOptions r=kvark a=kvark
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-04-02 04:30:05 +00:00
Dzmitry Malyshau
0f279c54bc
[rs] Update to latest wgpu, duplicate RequestAdapterOptions
2020-04-02 00:29:24 -04:00
bors[bot] and Dzmitry 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
Dzmitry Malyshau
f3eee020e6
Check surface compatibility
2020-03-30 23:31:24 -04:00
Dzmitry Malyshau
7ff7eb2f22
[rs] Change NDC Y axis
2020-03-30 09:36:36 -04:00
Joshua Groves
2ebde4bb9d
[rs] Default to MSVC on Windows
2020-03-30 07:58:06 -04:00
Joshua Groves
3ad0453ad9
[rs] Update to latest wgpu
2020-03-30 07:58:06 -04:00
Joshua Groves
652c7242fb
[rs] Avoid array indexing in hello-triangle
2020-03-30 07:58:06 -04:00
Lucas Kent
ef1e47216e
[rs] Move multithreaded_compute.rs into hello-compute tests ( #223 )
...
Setup hello-compute tests to run during `cargo test`
2020-03-29 19:55:39 -04:00
Timo de Kort
1a1f6a47b0
add support for ConstantComposite
2020-03-28 14:58:45 -04:00
aloucks
66243f12c9
[rs] Add VertexStateDescriptor ( #221 )
...
The vertex state properties are now bundled in the VertexStateDescriptor
which matches the spec.
Fixes #220
2020-03-28 10:45:18 -04:00
bors[bot] and HeroesGrave
306554600a
Merge #540
...
540: Add serialization to more types r=kvark a=HeroesGrave
With these changes, pretty much everything in wgpu-types can be serialized with the exception of BufferDescriptor, CommandEncoderDescriptor, and TextureDescriptor which contain a `*const c_char`.
Options for dealing with those:
- Leave these types as not de/serializable
- Skip when serializing, deserialize as nullptr
- Serialize as a string, deserialize as nullptr
AFAICT there's not really a way to allow a full roundtrip for these fields because nul-terminated strings don't play nicely with serde. Maybe it could serialize as a byte array?
Co-authored-by: HeroesGrave <heroesgrave@gmail.com >
2020-03-28 14:44:08 +00:00
HeroesGrave
1702a54c5c
Add Undefined variant to CompareFunction
2020-03-28 16:20:47 +13:00
bors[bot] and Joshua Groves
fcd8bce6f7
Merge #541
...
541: Move more types to wgpu-types r=kvark a=grovesNL
Co-authored-by: Joshua Groves <josh@joshgroves.com >
2020-03-28 02:14:06 +00:00
Joshua Groves
f3bb6eb230
Move more types to wgpu-types
2020-03-27 23:26:17 -02:30
HeroesGrave
98e18c5ac8
Add serialization to more types
2020-03-28 13:49:09 +13:00