mirror of
https://github.com/bevyengine/bevy
synced 2024-12-22 02:53:07 +00:00
3 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
dependabot[bot]
|
97012950f9 |
Update nalgebra requirement from 0.29.0 to 0.30.0 (#3540)
Updates the requirements on [nalgebra](https://github.com/dimforge/nalgebra) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/dimforge/nalgebra/blob/dev/CHANGELOG.md">nalgebra's changelog</a>.</em></p> <blockquote> <h2>[0.30.0] (02 Jan. 2022)</h2> <h3>Breaking changes</h3> <ul> <li>The <code>Dim</code> trait is now marked as unsafe.</li> <li>The <code>Matrix::pow</code> and <code>Matrix::pow_mut</code> methods only allow positive integer exponents now. To compute negative exponents, the user is free to invert the matrix before calling <code>pow</code> with the exponent’s absolute value.</li> </ul> <h3>Modified</h3> <ul> <li>Use more concise debug impls for matrices and geometric transformation types.</li> <li>The singular values computed by the SVD are now sorted in increasing order by default. Use <code>SVD::new_unordered</code> instead to reproduce the older behavior without the sorting overhead.</li> <li>The <code>UnitDualQuaternion::sclerp</code> method will no longer panic when given two equal rotations.</li> <li>The <code>Matrix::select_rows</code> and <code>Matrix::select_columns</code> methods no longer require the matrix components to implement the trait <code>Zero</code>.</li> <li>The <code>Matrix::pow</code> and <code>Matrix::pow_mut</code> methods will now also work with integer matrices.</li> </ul> <h3>Added</h3> <ul> <li>Added the conversion trait <code>From<Vec<T>></code> and method <code>from_vec_storage</code> for <code>RowDVector</code>.</li> <li>Added implementation of <code>From</code> and <code>Into</code> for converting between <code>nalgebra</code> types and types from <code>glam 0.18</code>. These can be enabled by enabling the <code>convert-glam018</code> cargo features.</li> <li>Added the methods <code>Matrix::product</code>, <code>::row_product</code>, <code>::row_product_tr</code>, and <code>::column_product</code> to compute the product of the components, rows, or columns, of a single matrix or vector.</li> <li>The <code>Default</code> trait is now implemented for most geometric types: <code>Point</code>, <code>Isometry</code>, <code>Rotation</code>, <code>Similarity</code>, <code>Transform</code>, <code>UnitComplex</code>, and <code>UnitQuaternion</code>.</li> <li>Added the <code>Scale</code> geometric type for representing non-uniform scaling.</li> <li>Added <code>Cholesky::new_with_substitute</code> that will replace diagonal elements by a given constant whenever <code>Cholesky</code> meets a non-definite-positiveness.</li> <li>Re-added the conversion from a vector/matrix slice to a static array.</li> <li>Added the <code>cuda</code> feature that enables the support of <a href="https://github.com/Rust-GPU/Rust-CUDA">rust-cuda</a> for using <code>nalgebra</code> features with CUDA kernels written in Rust.</li> <li>Added special-cases implementations for the 2x2 and 3x3 SVDs for better accuracy and performances.</li> <li>Added the methods <code>Matrix::polar</code>, <code>Matrix::try_polar</code>, and <code>SVD::to_polar</code> to compute the polar decomposition of a matrix, based on its SVD.</li> <li><code>nalgebra-sparse</code>: provide constructors for unsorted but otherwise valid data using the CSR format.</li> <li><code>nalgebra-sparse</code>: added reading MatrixMarked data files to a sparse <code>CooMatrix</code>.</li> </ul> <h3>Fixed</h3> <ul> <li>Fixed a potential unsoundness with <code>matrix.get(i)</code> and <code>matrix.get_mut(i)</code> where <code>i</code> is an <code>usize</code>, and <code>matrix</code> is a matrix slice with non-default strides.</li> <li>Fixed potential unsoundness with <code>vector.perp</code> where <code>vector</code> isn’t actually a 2D vector as expected.</li> <li>Fixed linkage issue with <code>nalgebra-lapack</code>: the user of <code>nalgebra-lapack</code> no longer have to add <code>extern crate lapack-src</code> to their <code>main.rs</code>.</li> <li>Fixed the <code>no-std</code> build of <code>nalgebra-glm</code>.</li> <li>Fix the <code>pow</code> and <code>pow_mut</code> functions (the result was incorrect for some exponent values).</li> </ul> <h2>[0.29.0]</h2> <h3>Breaking changes</h3> <ul> <li>We updated to the version 0.6 of <code>simba</code>. This means that the trait bounds <code>T: na::RealField</code>, <code>na::ComplexField</code>, <code>na::SimdRealField</code>, <code>na:SimdComplexField</code> no imply that <code>T: Copy</code> (they only imply that <code>T: Clone</code>). This may affect</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
François
|
f3b053d11f |
crevice derive macro: fix path to render_resource when importing from bevy (#3438)
# Objective - Fix #3436 ## Solution - Do not add twice `render_resource` when coming from `bevy` Co-authored-by: François <8672791+mockersf@users.noreply.github.com> |
||
François
|
79d36e7c28 |
Prepare crevice for vendored release (#3394)
# Objective - Our crevice is still called "crevice", which we can't use for a release - Users would need to use our "crevice" directly to be able to use the derive macro ## Solution - Rename crevice to bevy_crevice, and crevice-derive to bevy-crevice-derive - Re-export it from bevy_render, and use it from bevy_render everywhere - Fix derive macro to work either from bevy_render, from bevy_crevice, or from bevy ## Remaining - It is currently re-exported as `bevy::render::bevy_crevice`, is it the path we want? - After a brief suggestion to Cart, I changed the version to follow Bevy version instead of crevice, do we want that? - Crevice README.md need to be updated - in the `Cargo.toml`, there are a few things to change. How do we want to change them? How do we keep attributions to original Crevice? ``` authors = ["Lucien Greathouse <me@lpghatguy.com>"] documentation = "https://docs.rs/crevice" homepage = "https://github.com/LPGhatguy/crevice" repository = "https://github.com/LPGhatguy/crevice" ``` Co-authored-by: François <8672791+mockersf@users.noreply.github.com> Co-authored-by: Carter Anderson <mcanders1@gmail.com> |