bevy/crates/bevy_core_pipeline/src
NiseVoid a8003b4496
Handle 0 height in prepare_bloom_textures (#14423)
# Objective

- Fix a confusing panic when the viewport width is non-zero and the
height is 0, `prepare_bloom_textures` tries to create a `4294967295x1`
texture.

## Solution

- Avoid dividing by zero
- Apps still crash after this, but now on a more reasonable error about
the zero-size viewport

## Testing

- I isolated and tested the math. A height of 0 sets `mip_height_ratio`
to `inf`, causing the width to explode if it isn't also 0
2024-07-26 21:53:36 +00:00
..
auto_exposure Fix lints introduced in Rust beta 1.80 (#13899) 2024-06-17 17:22:01 +00:00
blit Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
bloom Handle 0 height in prepare_bloom_textures (#14423) 2024-07-26 21:53:36 +00:00
contrast_adaptive_sharpening Using Cas instead of CAS #14341 (#14357) 2024-07-20 18:12:24 +00:00
core_2d Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
core_3d Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
deferred Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
dof Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00
fullscreen_vertex_shader Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
fxaa Refactor App and SubApp internals for better separation (#9202) 2024-03-31 03:16:10 +00:00
motion_blur Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00
post_process Start a built-in postprocessing stack, and implement chromatic aberration in it. (#13695) 2024-07-15 13:59:02 +00:00
prepass Don't ignore draw errors (#13240) 2024-07-22 19:22:30 +00:00
skybox Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00
smaa Fixup Msaa docs. (#14442) 2024-07-22 21:37:25 +00:00
taa Fixup Msaa docs. (#14442) 2024-07-22 21:37:25 +00:00
tonemapping Skip tonemapping in case it is none (#13679) 2024-06-05 11:32:46 +00:00
upscaling Set scissor on upscale to match camera viewport (#14287) 2024-07-20 16:45:04 +00:00
lib.rs Using Cas instead of CAS #14341 (#14357) 2024-07-20 18:12:24 +00:00
msaa_writeback.rs Move Msaa to component (#14273) 2024-07-22 18:28:23 +00:00