bevy/crates/bevy_core_pipeline/src
Olle Lukowski 6b9cd57956
Introduce AspectRatio struct (#10368)
# Objective

- Fix an inconsistency in the calculation of aspect ratio's. 
- Fixes #10288 

## Solution

- Created an intermediate `AspectRatio` struct, as suggested in the
issue. This is currently just used in any places where aspect ratio
calculations happen, to prevent doing it wrong. In my and @mamekoro 's
opinion, it would be better if this was used instead of a normal `f32`
in various places, but I didn't want to make too many changes to begin
with.

## Migration Guide
- Anywhere where you are currently expecting a f32 when getting aspect
ratios, you will now receive a `AspectRatio` struct. this still holds
the same value.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2023-12-17 02:01:26 +00:00
..
blit Bind group layout entries (#10224) 2023-11-28 04:00:49 +00:00
bloom Introduce AspectRatio struct (#10368) 2023-12-17 02:01:26 +00:00
contrast_adaptive_sharpening Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
core_2d Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
core_3d Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
deferred Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
fullscreen_vertex_shader Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
fxaa Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
prepass Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
skybox Add clippy::manual_let_else at warn level to lints (#10684) 2023-11-28 04:15:27 +00:00
taa Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
tonemapping Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
upscaling Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00
clear_color.rs impl From<Color> for ClearColorConfig (#10734) 2023-11-26 20:48:03 +00:00
lib.rs Add [lints] table, fix adding #![allow(clippy::type_complexity)] everywhere (#10011) 2023-11-18 20:58:48 +00:00
msaa_writeback.rs Update to wgpu 0.18 (#10266) 2023-12-14 02:45:47 +00:00