
# Objective - bevy_core_pipeline is getting really big and it's a big bottleneck for compilation time. A lot of parts of it can be broken up ## Solution - Add a new bevy_anti_aliasing crate that contains all the anti_aliasing implementations - I didn't move any MSAA related code to this new crate because that's a lot more invasive ## Testing - Tested the anti_aliasing example to make sure all methods still worked --- ## Showcase before:  after:  Notice that now bevy_core_pipeline is 1s shorter and bevy_anti_aliasing now compiles in parallel with bevy_pbr. ## Migration Guide When using anti aliasing features, you now need to import them from `bevy::anti_aliasing` instead of `bevy::core_pipeline`
28 lines
699 B
Rust
28 lines
699 B
Rust
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
|
|
#![forbid(unsafe_code)]
|
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
|
#![doc(
|
|
html_logo_url = "https://bevyengine.org/assets/icon.png",
|
|
html_favicon_url = "https://bevyengine.org/assets/icon.png"
|
|
)]
|
|
|
|
use bevy_app::Plugin;
|
|
use contrast_adaptive_sharpening::CasPlugin;
|
|
use fxaa::FxaaPlugin;
|
|
use smaa::SmaaPlugin;
|
|
|
|
pub mod contrast_adaptive_sharpening;
|
|
pub mod experimental;
|
|
pub mod fxaa;
|
|
pub mod smaa;
|
|
|
|
mod taa;
|
|
|
|
#[derive(Default)]
|
|
pub struct AntiAliasingPlugin;
|
|
impl Plugin for AntiAliasingPlugin {
|
|
fn build(&self, app: &mut bevy_app::App) {
|
|
app.add_plugins((FxaaPlugin, CasPlugin, SmaaPlugin));
|
|
}
|
|
}
|