Skip to content

Commit

Permalink
Register fxaa::Sensitivity and derive Debug (bevyengine#12167)
Browse files Browse the repository at this point in the history
# Objective

- More reflection

## Solution

- More. Reflection.

(not sure what bevy's policy on `derive(Debug)` is given that reflection
already lets you accomplish something largely equivalent; maybe
`derive(Reflect)` should generate a `Debug` impl that goes through
`Reflect::debug` unless you opt out?)
  • Loading branch information
SludgePhD committed Feb 28, 2024
1 parent c2ae51d commit ecdd284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_core_pipeline/src/fxaa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod node;

pub use node::FxaaNode;

#[derive(Reflect, Eq, PartialEq, Hash, Clone, Copy)]
#[derive(Debug, Reflect, Eq, PartialEq, Hash, Clone, Copy)]
#[reflect(PartialEq, Hash)]
pub enum Sensitivity {
Low,
Expand Down Expand Up @@ -86,7 +86,7 @@ impl Plugin for FxaaPlugin {
fn build(&self, app: &mut App) {
load_internal_asset!(app, FXAA_SHADER_HANDLE, "fxaa.wgsl", Shader::from_wgsl);

app.register_type::<Fxaa>();
app.register_type::<Fxaa>().register_type::<Sensitivity>();
app.add_plugins(ExtractComponentPlugin::<Fxaa>::default());

let Ok(render_app) = app.get_sub_app_mut(RenderApp) else {
Expand Down

0 comments on commit ecdd284

Please sign in to comment.