diff --git a/CHANGELOG.md b/CHANGELOG.md index 0abdf227..4c7b6955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog], and this project adheres to ## [Unreleased] +## [0.33.2] - 2026-06-28 + ### Added * Added the `camera` and `dcamera` modules containing view and projection @@ -1451,7 +1453,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Keep a Changelog]: https://keepachangelog.com/ [Semantic Versioning]: https://semver.org/spec/v2.0.0.html -[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.33.1...HEAD +[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.33.2...HEAD +[0.33.2]: https://github.com/bitshifter/glam-rs/compare/0.33.1...0.33.2 [0.33.1]: https://github.com/bitshifter/glam-rs/compare/0.33.0...0.33.1 [0.33.0]: https://github.com/bitshifter/glam-rs/compare/0.32.1...0.33.0 [0.32.1]: https://github.com/bitshifter/glam-rs/compare/0.32.0...0.32.1 diff --git a/Cargo.toml b/Cargo.toml index 37739f9f..a93182e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "glam" -version = "0.33.1" # remember to update html_root_url +version = "0.33.2" # remember to update html_root_url edition = "2021" description = "A simple and fast 3D math library for games and graphics" repository = "https://github.com/bitshifter/glam-rs" diff --git a/README.md b/README.md index 47958c1b..9d64fb9f 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ defined in `std`. For example: ```toml [dependencies] -glam = { version = "0.33.1", default-features = false, features = ["libm"] } +glam = { version = "0.33.2", default-features = false, features = ["libm"] } ``` To support both `std` and `no_std` builds in project, you can use the following @@ -102,7 +102,7 @@ std = ["glam/std"] libm = ["glam/libm"] [dependencies] -glam = { version = "0.33.1", default-features = false } +glam = { version = "0.33.2", default-features = false } ``` Alternatively, you can use the `nostd-libm` feature. This will always include a @@ -118,7 +118,7 @@ std = ["glam/std"] libm = ["glam/libm"] [dependencies] -glam = { version = "0.33.1", default-features = false, features = ["nostd-libm"] } +glam = { version = "0.33.2", default-features = false, features = ["nostd-libm"] } ``` ### Feature gates diff --git a/src/camera/lh/proj.rs b/src/camera/lh/proj.rs index 2c24be03..c8e683f4 100644 --- a/src/camera/lh/proj.rs +++ b/src/camera/lh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -140,6 +141,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/camera/rh/proj.rs b/src/camera/rh/proj.rs index 690271dd..b1942181 100644 --- a/src/camera/rh/proj.rs +++ b/src/camera/rh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -147,6 +148,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/lh/proj.rs b/src/dcamera/lh/proj.rs index e16a5a60..eda28ef7 100644 --- a/src/dcamera/lh/proj.rs +++ b/src/dcamera/lh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -154,6 +155,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/rh/proj.rs b/src/dcamera/rh/proj.rs index cc5f8af4..716d4948 100644 --- a/src/dcamera/rh/proj.rs +++ b/src/dcamera/rh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -161,6 +162,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/lib.rs b/src/lib.rs index 668667fa..64d4adc7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -294,7 +294,7 @@ and benchmarks. The minimum supported Rust version is `1.68.2`. */ -#![doc(html_root_url = "https://docs.rs/glam/0.33.1")] +#![doc(html_root_url = "https://docs.rs/glam/0.33.2")] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(target_arch = "spirv", feature(repr_simd))] #![cfg_attr(target_arch = "wasm64", feature(simd_wasm64))] diff --git a/templates/camera_proj.rs.tera b/templates/camera_proj.rs.tera index ff383e3f..4aa22471 100644 --- a/templates/camera_proj.rs.tera +++ b/templates/camera_proj.rs.tera @@ -24,6 +24,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -99,6 +100,9 @@ pub mod opengl { {% set yflip = false %} {% endif %} +{% if api == "directx" %} +#[doc(alias = "webgpu")] +{%- endif %} pub mod {{ api }} { //! {{ api_desc }} NDC convention: Z range **{{ api_z }}**, {{ api_y }}. //!