bevy/crates/bevy_pbr/src
Sjael 06ada2e93d Changed Msaa to Enum (#7292)
# Objective

Fixes #6931 

Continues #6954 by squashing `Msaa` to a flat enum

Helps out  #7215 

# Solution
```
pub enum Msaa {
    Off = 1,
    #[default]
    Sample4 = 4,
}
```

# Changelog

- Modified
    - `Msaa` is now enum
    - Defaults to 4 samples
    - Uses `.samples()` method to get the sample number as `u32`

# Migration Guide
```
let multi = Msaa { samples: 4 } 
// is now
let multi = Msaa::Sample4

multi.samples
// is now
multi.samples()
```



Co-authored-by: Sjael <jakeobrien44@gmail.com>
2023-01-20 14:25:21 +00:00
..
prepass Changed Msaa to Enum (#7292) 2023-01-20 14:25:21 +00:00
render Changed Msaa to Enum (#7292) 2023-01-20 14:25:21 +00:00
alpha.rs add ReflectAsset and ReflectHandle (#5923) 2022-10-28 20:42:33 +00:00
bundle.rs Visibilty Inheritance, universal ComputedVisibility and RenderLayers support (#5310) 2022-07-15 23:24:42 +00:00
lib.rs Add depth and normal prepass (#6284) 2023-01-19 22:11:13 +00:00
light.rs Fix various typos (#7096) 2023-01-06 00:43:30 +00:00
material.rs Changed Msaa to Enum (#7292) 2023-01-20 14:25:21 +00:00
pbr_material.rs Add depth and normal prepass (#6284) 2023-01-19 22:11:13 +00:00
wireframe.rs Changed Msaa to Enum (#7292) 2023-01-20 14:25:21 +00:00