Jakob Hellermann
cd688d7a41
fix rustdoc warnings ( #1437 )
...
Every warning is fixed except for
b39df9a8d2/crates/bevy_render/src/texture/texture_descriptor.rs (L61)
because I didn't know what the required feature is.
I opened https://github.com/gfx-rs/wgpu/issues/1213 for that.
2021-02-22 03:59:35 +00:00
Aevyrie
d85b89b430
Update example with new stage terminology ( #1496 )
...
Updates old comments from the old `stage::UPDATE` terminology to the new `CoreStage` enum.
2021-02-22 03:43:28 +00:00
Alec Deason
97a78c3698
Make vertex buffers optional ( #1485 )
...
For some cases, like driving a full screen fragment shader, it is sometimes convenient to not have to create and upload a mesh because the necessary vertices are simple to synthesize in the vertex shader. Bevy's existing pipeline compiler assumes that there will always be a vertex buffer. This PR changes that such that vertex buffer descriptor is only added to the pipeline layout if there are vertex attributes in the shader.
2021-02-22 03:43:27 +00:00
Niklas Eicker
2e3af84590
Add remove resource to commands ( #1478 )
...
resolves #1468
Co-authored-by: Niklas Eicker <git@nikl.me>
2021-02-22 03:43:26 +00:00
Jakob Hellermann
f73c6d18ef
better error message on failed derive ( #1491 )
...
Before, when deriving `SystemLabel` for a type without `Clone`, the error message was:
```
the trait `SystemLabel` is not implemented for `&TransformSystem`
```
Now it is
```
the trait `Clone` is not implemented for `TransformSystem`
```
which directly shows what's needed to fix the problem.
2021-02-22 03:23:57 +00:00
Renato Caldas
3319195f90
Implement Reflect for integer glam vectors. ( #1455 )
...
This is a very simple change that allows the (reflected) use of integer glam vectors (UVec2 for instance) in components.
2021-02-19 22:25:07 +00:00
Yoh Deadfall
578a5b1b88
Moved benchmarks to a single place ( #1477 )
...
Closes #1472 .
2021-02-19 22:11:00 +00:00
Daniel McNab
041fd27b0a
Update all references to use main ( #1483 )
...
In this case, the previous section header linked to in second badge in `plugins_guidelines` didn't actually exist, so I just linked to the same section as the first badge
Also I need to check that github handles the relative links correctly
2021-02-19 21:25:52 +00:00
Daniel McNab
59066c4854
Bors ( #1482 )
...
* Time to do the bors tango
2021-02-19 13:15:29 -08:00
Niklas Eicker
89a41bc628
Replace merge_imports with imports_granularity=Crate ( #1479 )
...
See rust-lang/rustfmt#4634
2021-02-19 12:05:41 -08:00
TheRawMeatball
fa73036f9d
Extend AppBuilder api with add_system_set
and similar methods ( #1453 )
...
Extend AppBuilder api with `add_system_set` and similar methods
2021-02-19 11:36:34 -08:00
Niklas Eicker
884dc46ffe
Replace right/up/forward and counter parts with local_x/local_y and local_z ( #1476 )
2021-02-19 10:51:26 -08:00
Alexander Sepity
c2a427f1a3
Non-string labels ( #1423 continued) ( #1473 )
...
Non-string labels
2021-02-18 13:20:37 -08:00
Alexander Sepity
82d0e84a5c
Explicit execution order ambiguities API ( #1469 )
...
Explicit execution order ambiguities API.
2021-02-18 11:30:13 -08:00
François
a5d2501b75
add labels and ordering for transform and parent systems in POST_UPDATE stage ( #1456 )
2021-02-16 18:00:12 -08:00
Alice Cecile
a895256925
Better documentation for explicit dependencies ( #1428 )
...
* More in-depth ambiguity checker docs
* Updated ecs_guide example with explicit dependencies
2021-02-16 11:18:08 -08:00
Alexander Sepity
d021a3c374
Relaxed bounds on NonSend
. ( #1448 )
2021-02-14 16:20:16 -08:00
Hans W. Uhlig
f8292ccf7e
Simple Implementation to address #1327 by adding a focused field to the window and related system ( #1386 )
...
* Simple Implementation to address #1327 by adding a focused field to the window and related system
* Changing Window update function from bevy_window to bevy_winit.
* Removing unused imports.
2021-02-12 21:32:32 -08:00
Wouter Buckens
b39df9a8d2
Fix missing paths in ECS SystemParam derive macro ( #1434 )
2021-02-11 15:59:11 -08:00
Daniel McNab
3a32a21fe9
Fix clippy stuff ( #1433 )
...
* Fix clippy stuff
* Add comments explaining inconsistency
Also explains that the code is unused
2021-02-11 14:09:01 -08:00
Daniel McNab
7be096a254
Fix the z_sort_debug example from #1361 ( #1419 )
...
Fixes #1411
2021-02-09 12:37:49 -08:00
Alexander Sepity
d5a7330431
System sets and parallel executor v2 ( #1144 )
...
System sets and parallel executor v2
2021-02-09 12:14:10 -08:00
Carter Anderson
b71ada0346
revert default vsync mode to Fifo ( #1416 )
...
the mailbox option doesn't do framelimiting on some devices. we need to rely on vsync for framelimiting until bevy supports framelimiting internally. #1343
2021-02-08 18:13:37 -08:00
MinerSebas
3475a64a2c
More Doctest changes ( #1405 )
...
* Add system() to DocTests
* Hide use statements
2021-02-05 17:44:34 -08:00
szunami
c87d4c110f
Update example system in documentation ( #1403 )
...
The existing snippet fails to compile with:
```
no method named `system` found for fn item `fn(bevy::prelude::Commands) {example_system}` in the current scope
```
2021-02-05 12:57:47 -08:00
Rob Parrett
110ff77db9
Fix regression causing "flipped" sprites to be invisible ( #1399 )
...
Regressed in 81809c71ce
2021-02-04 20:17:11 -08:00
dinococo
3adcba9461
Grammar fixes ( #1390 )
...
* Minor grammar fixes
* Minor grammar fixes
Fixed punctuation and wording.
* Minor grammar fixes
FIxed spelling, wording and formatting.
2021-02-03 19:15:25 -08:00
davier
5b115397ba
Fix Reflect serialization of tuple structs ( #1366 )
...
* Fix DynamicTupleStruct::type_name()
* Fix type_name() for DynamicList, DynamicMap and DynamicTuple
2021-02-02 13:57:26 -08:00
Jakob Hellermann
4796ea8d22
move texture_to_image and image_to_texture into new module ( #1381 )
...
The `Texture::convert` function previously was only compiled when
one of the image format features (`png`, `jpeg` etc.) were enabled.
The `bevy_sprite` crate needs this function though, which led
to compilation errors when using `cargo check --no-default-features
--features render`.
Now the `convert` function has no features and the `texture_to_image`
and `image_to_texture` utilites functions are in an unconditionally
compiled module.
2021-02-02 13:25:16 -08:00
dependabot[bot]
1ca8ce4a79
Update crossbeam-utils requirement from 0.7.2 to 0.8.1 ( #959 )
...
Updates the requirements on [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) to permit the latest version.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-0.7.2...crossbeam-utils-0.8.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-02-01 13:51:44 -08:00
dependabot[bot]
05b8b5c8c2
Update crossbeam-channel requirement from 0.4.4 to 0.5.0 ( #668 )
...
Updates the requirements on [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ) to permit the latest version.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.4.4...crossbeam-channel-0.5.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-01 13:30:38 -08:00
dependabot[bot]
89df94e690
Update ahash requirement from 0.6.1 to 0.7.0 ( #1370 )
...
Updates the requirements on [ahash](https://github.com/tkaitchuck/ahash ) to permit the latest version.
- [Release notes](https://github.com/tkaitchuck/ahash/releases )
- [Commits](https://github.com/tkaitchuck/ahash/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-01 13:29:54 -08:00
Carter Anderson
b9b4a49419
fix rebase workflow (again)
2021-02-01 12:26:55 -08:00
Carter Anderson
7095dfe4c8
fix rebase workflow
2021-02-01 12:23:18 -08:00
Carter Anderson
32114c1ca8
add rebase action ( #1368 )
2021-02-01 12:18:58 -08:00
François
6b8f8a7ed0
Texture atlas format and conversion ( #1365 )
...
* can specify texture format for a texture atlas
* add automatic conversion
2021-02-01 11:30:11 -08:00
François
cf5f3b5008
Plugin guidelines ( #1250 )
...
* add plugin guidelines
* refactor features list
2021-01-31 20:19:10 -08:00
Zhixing Zhang
81809c71ce
Update to wgpu-rs 0.7 ( #542 )
...
Update to wgpu-rs 0.7
2021-01-31 20:06:42 -08:00
Will Crichton
e6e23fdfa9
Add support for gltf::Material::unlit ( #1341 )
...
* Add support for gltf::Material::unlit
2021-01-31 17:13:16 -08:00
Spencer Burris
06dbfffe2e
Update default features in docs/cargo_features.md ( #1287 )
2021-01-31 17:03:54 -08:00
davier
1d3dfd3938
Fix Interaction not resetting to None sometimes ( #1315 )
...
* Fix Interaction getting stuck when pressing and releasing mouse button in one frame
* Fix Interaction not resetting in some cases with FocusPolicy::Pass
2021-01-31 17:03:25 -08:00
Nathan Stocks
0867dc76a3
Use Cow<'static, str> in Name ( #1308 )
...
* Implement Name { name } as Cow<'static, str>
* Attempt impl Reflect for Cow<'static, str.>
2021-01-31 16:35:23 -08:00
Jasen Borisov
7d065eeb71
3D OrthographicProjection improvements + new example ( #1361 )
...
* use `length_squared` for visible entities
* ortho projection 2d/3d different depth calculation
* use ScalingMode::FixedVertical for 3d ortho
* new example: 3d orthographic
2021-01-31 16:22:06 -08:00
François
83e30a841a
bind the labeled asset type to the actual loaded asset ( #1363 )
...
bind the labeled asset type to the actual loaded asset
2021-01-31 13:54:15 -08:00
Jeremiah Senkpiel
4904080382
examples: add rng coloring to bevymark birds ( #1192 )
...
This is something done by a lot of the "bunnymark" tests, and it makes it easier to really see how many you've added.
2021-01-31 13:41:13 -08:00
Wojciech Olejnik
83777e0ccf
Update config_fast_builds for latest nightly ( #1362 )
...
`-Zrun-dsymutil` has been recently replaced with `-Csplit-debuginfo` (still nightly-only)
See: https://github.com/rust-lang/rust/pull/79570
2021-01-31 13:29:04 -08:00
Zicklag
bff44f76ec
Fix Un-Renamed add_resource Compile Error ( #1357 )
2021-01-30 13:32:46 -08:00
Alice Cecile
6f5a4d9deb
Rename add_resource to insert_resource ( #1356 )
...
* Renamed add_resource to insert_resource
* Changed usage of add_resource to insert_resource
* Renamed add_thread_local_resource
2021-01-30 12:55:13 -08:00
Daniel McNab
b922a3ec60
Update init_resource to not overwrite ( #1349 )
...
Update init_resource to not overwrite
2021-01-30 12:48:11 -08:00
Renato Caldas
8e0e4223e5
Improve clarity of WindowTextureNode and WindowSwapchainNode error messages ( #1355 )
...
Improve clarity of WindowTextureNode and WindowSwapchainNode error messages
2021-01-30 12:47:27 -08:00