-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Merged by Bors] - Updated glam
to 0.21
.
#5142
Conversation
Removed `const_vec2`/`const_vec3` and replaced with equivalent `.from_array`.
This is a PR for doing the update in #5115. |
Please fix the PR title: the wrong version is in there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As James said above, the title of this PR has a typo.
and changed to constants..
Could someone review my last commit? Is this too much? Should this be reverted? Also |
Last thing needed is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than encase
and the other comments, LGTM.
`bevy_reflect`. Ooops.
I just released encase v0.3 (which includes the bump to glam 0.21) |
I'm hitting some issues: error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:84:17
|
84 | #[derive(Clone, ShaderType)]
| ^^^^^^^^^^
| |
| could not find `Size` in `private`
| in this derive macro expansion
|
::: C:\Users\angus\.cargo\registry\src\github.com-1ecc6299db9ec823\encase_derive_impl-0.2.0\src\lib.rs:18:9
|
18 | pub fn derive_shader_type(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ------------------------------------------------------------------------------------ in this expansion of `#[derive(ShaderType)]`
error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:87:5
|
87 | view: Mat4,
| ^^^^ could not find `Size` in `private`
error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:88:5
|
88 | inverse_view: Mat4,
| ^^^^^^^^^^^^ could not find `Size` in `private`
error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:89:5
|
89 | projection: Mat4,
| ^^^^^^^^^^ could not find `Size` in `private`
error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:90:5
|
90 | world_position: Vec3,
| ^^^^^^^^^^^^^^ could not find `Size` in `private`
error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:91:5
|
91 | width: f32,
| ^^^^^ could not find `Size` in `private`
error[E0433]: failed to resolve: could not find `Size` in `private`
--> crates\bevy_render\src\view\mod.rs:92:5
|
92 | height: f32,
| ^^^^^^ could not find `Size` in `private`
error[E0405]: cannot find trait `Size` in module `encase::private`
--> crates\bevy_render\src\view\mod.rs:84:17
|
84 | #[derive(Clone, ShaderType)]
| ^^^^^^^^^^
| |
| not found in `encase::private`
| in this derive macro expansion
|
::: C:\Users\angus\.cargo\registry\src\github.com-1ecc6299db9ec823\encase_derive_impl-0.2.0\src\lib.rs:18:9
|
18 | pub fn derive_shader_type(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
| ------------------------------------------------------------------------------------ in this expansion of `#[derive(ShaderType)]` Right now, I'm trying to figure out what to do with this... |
Bevy has it's own version of encase's derive macro which has to be updated as well. |
I'm utterly confused as to how to rebase this PR to main. So I resolved the conflicts by hand on github. I've no idea what the result of this is. I've no clue why the rebase is incredibly annoying. I cannot do it. I've tried 4 times already. |
Serialisation tests are failing.
In the test code it is written as: assert_eq!(
result,
r#"{"type":"glam::vec3::Vec3","struct":{"x":{"type":"f32","value":12.0},"y":{"type":"f32","value":3.0},"z":{"type":"f32","value":-6.9}}}"#
); Uhm.. what is the right decision here? |
Looks like the location of the type changed. |
Next issue is rounding of the number 12. ---- tests::glam::vec3_serialization stdout ----
thread 'tests::glam::vec3_serialization' panicked at 'assertion failed: `(left == right)`
left: `"{\"type\":\"glam::f32::vec3::Vec3\",\"struct\":{\"x\":{\"type\":\"f32\",\"value\":12},\"y\":{\"type\":\"f32\",\"value\":3},\"z\":{\"type\":\"f32\",\"value\":-6.9}}}"`,
right: `"{\"type\":\"glam::f32::vec3::Vec3\",\"struct\":{\"x\":{\"type\":\"f32\",\"value\":12.0},\"y\":{\"type\":\"f32\",\"value\":3.0},\"z\":{\"type\":\"f32\",\"value\":-6.9}}}"`', crates\bevy_reflect\src\lib.rs:923:13note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
and also the rounding of `12.0`, and `6.0`.
While James did say it first, I didn't notice it until now: We need a new version of |
The rounding seems to be one thing locally and another thing on CI. |
bors r+ |
Removed `const_vec2`/`const_vec3` and replaced with equivalent `.from_array`. # Objective Fixes #5112 ## Solution - `encase` needs to update to `glam` as well. See teoxoy/encase#4 on progress on that. - `hexasphere` also needs to be updated, see OptimisticPeach/hexasphere#12.
glam
to 0.21
.glam
to 0.21
.
Removed `const_vec2`/`const_vec3` and replaced with equivalent `.from_array`. # Objective Fixes bevyengine#5112 ## Solution - `encase` needs to update to `glam` as well. See teoxoy/encase#4 on progress on that. - `hexasphere` also needs to be updated, see OptimisticPeach/hexasphere#12.
Removed `const_vec2`/`const_vec3` and replaced with equivalent `.from_array`. # Objective Fixes bevyengine#5112 ## Solution - `encase` needs to update to `glam` as well. See teoxoy/encase#4 on progress on that. - `hexasphere` also needs to be updated, see OptimisticPeach/hexasphere#12.
Removed `const_vec2`/`const_vec3` and replaced with equivalent `.from_array`. # Objective Fixes bevyengine#5112 ## Solution - `encase` needs to update to `glam` as well. See teoxoy/encase#4 on progress on that. - `hexasphere` also needs to be updated, see OptimisticPeach/hexasphere#12.
Removed
const_vec2
/const_vec3
and replaced with equivalent
.from_array
.Objective
Fixes #5112
Solution
encase
needs to update toglam
as well. See Updateglam
to 0.21 teoxoy/encase#4 on progress on that.hexasphere
also needs to be updated, see Updatedglam
to0.21
. OptimisticPeach/hexasphere#12.