Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 0.14.0 #537

Merged
merged 28 commits into from
Jul 5, 2024
Merged

Update to 0.14.0 #537

merged 28 commits into from
Jul 5, 2024

Commits on Jun 7, 2024

  1. Update to 0.14.0-rc.2

    * [12997](bevyengine/bevy#12997): rename `multi-threaded` to `multi_threaded`
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    cf3df98 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bdc9f1 View commit details
    Browse the repository at this point in the history
  3. FloatOrd is now in bevy_math

    implemented in [12732](bevyengine/bevy#12732)
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    a92a680 View commit details
    Browse the repository at this point in the history
  4. convert Transparent2d::dynamic_offset to extra_index

    [12889](bevyengine/bevy#12889) Gpu Frustum Culling removed the dynamic_offset of Transparent2d and it became `extra_index` with the special value `PhaseItemExtraIndex::NONE`, which indicates the `None` that was here previously
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    29f5818 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d234b18 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b6fe345 View commit details
    Browse the repository at this point in the history
  7. GpuImage::size f32 -> u32 via UVec2

    [11698](bevyengine/bevy#11698) changed `GpuImage::size` to `UVec2`.
    
    Right above this, `Extent3d` does the same thing, so I'm taking a small leap and assuming can `as`.
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    484e7c7 View commit details
    Browse the repository at this point in the history
  8. GpuMesh::primitive_topology -> key_bits/BaseMeshPipeline

    [12791](bevyengine/bevy#12791) the `primitive_topology` field on `GpuMesh` was removed in favor of `key_bits` which can be constructed using `BaseMeshPipeline::from_primitive_topology`
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    684be42 View commit details
    Browse the repository at this point in the history
  9. RenderChunk2d::prepare requires &mut MeshVertexBufferLayouts now

    [12216](bevyengine/bevy#12216) introduced an argument `&mut MeshVertexBufferLayouts` to `get_mesh_vertex_buffer_layout`, which bevy_ecs_tilemap calls in `RenderChunk2d::prepare`
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    31e330e View commit details
    Browse the repository at this point in the history
  10. into_linear_f32 -> color.0.linear().to_f32_array(),

    [12163](bevyengine/bevy#12163) bevy_color was created and Color handling has changed. Specifically Color::as_linear_rgba_f32 has been removed.
    
    LinearRgba is now its own type that can be accessed via [`linear()`](https://docs.rs/bevy/0.14.0-rc.2/bevy/color/enum.Color.html#method.linear) and then converted.
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    ad615dc View commit details
    Browse the repository at this point in the history
  11. Must specify type of VisibleEntities when accessing

    [12582](bevyengine/bevy#12582) divided `VisibleEntities` into separate lists. So now we have to specify which kind of entity we want. I think we want the Mesh here, and I think we can get rid of the `.index` calls on Entity since Entity [already compares bits](https://docs.rs/bevy_ecs/0.14.0-rc.2/src/bevy_ecs/entity/mod.rs.html#173) for optimized codegen purposes. Waiting to do that until the other changes are in though so as to not change functionality until post-upgrade.
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    4b14a61 View commit details
    Browse the repository at this point in the history
  12. app.world access is functions now

    - [9202](bevyengine/bevy#9202) changed world access to functions. [relevent line](https://github.com/bevyengine/bevy/pull/9202/files#diff-b2fba3a0c86e496085ce7f0e3f1de5960cb754c7d215ed0f087aa556e529f97fR640)
    - This also surfaced [12655](bevyengine/bevy#12655) which removed `Into<AssetId<T>>` for `Handle<T>`. using a reference or .id() is the solution here.
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    3a11d99 View commit details
    Browse the repository at this point in the history
  13. We don't need World::cell, and it doesn't exist anymore

    In [12551](bevyengine/bevy#12551) `WorldCell` was removed.
    
    ...but it turns out we don't need it or its replacement anyway.
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    b679927 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1386dc2 View commit details
    Browse the repository at this point in the history
  15. check_visibility is required for the entity that is renderable

    As a result of [12582](bevyengine/bevy#12582) `check_visibility` must be implemented for the "renderable" tilemap entities. Doing this is trivial by taking advantage of the
    existing `check_visibility` type arguments, which accept a [`QF: QueryFilter + 'static`](https://docs.rs/bevy/0.14.0-rc.2/bevy/render/view/fn.check_visibility.html).
    
    The same `QueryFilter`` is used when checking `VisibleEntities`. I've chosen `With<TilemapRenderSettings` because presumably if the entity doesn't have a `TilemapRenderSettings` then it will not be rendering, but this could be as sophisticated or simple as we want.
    
    For example `WithLight` is currently implemented as
    
    ```rust
    pub type WithLight = Or<(With<PointLight>, With<SpotLight>, With<DirectionalLight>)>;
    ```
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    1b087f4 View commit details
    Browse the repository at this point in the history
  16. view.view_proj -> view.clip_from_world

    [13289](bevyengine/bevy#13489) introduced matrix naming changes, including `view_proj` which becomes `clip_from_world`
    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    692d560 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5a58689 View commit details
    Browse the repository at this point in the history
  18. clippy fix

    ChristopherBiscardi committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    82d74cf View commit details
    Browse the repository at this point in the history
  19. Update Cargo.toml

    Co-authored-by: Rob Parrett <robparrett@gmail.com>
    ChristopherBiscardi and rparrett committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    e1a2a55 View commit details
    Browse the repository at this point in the history
  20. Update Cargo.toml

    Co-authored-by: Rob Parrett <robparrett@gmail.com>
    ChristopherBiscardi and rparrett committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    2ba45da View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    ff87555 View commit details
    Browse the repository at this point in the history
  22. Update Cargo.toml

    Co-authored-by: Rob Parrett <robparrett@gmail.com>
    ChristopherBiscardi and rparrett committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    2d22476 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2024

  1. Simplify async loading in ldtk/tiled helpers

    See Bevy #12550
    rparrett committed Jun 8, 2024
    Configuration menu
    Copy the full SHA
    03158fe View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Configuration menu
    Copy the full SHA
    d1d6438 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from rparrett/bevy-0.14-async-assets

    Simplify async loading in ldtk/tiled helpers
    ChristopherBiscardi committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    0600b0b View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. rc.3 bump

    ChristopherBiscardi committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    92fca8f View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    9b26ae5 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Configuration menu
    Copy the full SHA
    ef20700 View commit details
    Browse the repository at this point in the history