bevy/crates/bevy_sprite/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
..
mesh2d 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
bundle.rs Visibilty Inheritance, universal ComputedVisibility and RenderLayers support (#5310) 2022-07-15 23:24:42 +00:00
collide_aabb.rs Add more documentation and tests to collide_aabb::collide() (#5910) 2022-09-12 01:25:34 +00:00
dynamic_texture_atlas_builder.rs Move sprite::Rect into bevy_math (#5686) 2022-09-02 12:35:23 +00:00
lib.rs Revert "Show prelude re-exports in docs (#6448)" (#6449) 2022-11-02 20:40:45 +00:00
sprite.rs Remove VerticalAlign from TextAlignment (#6807) 2023-01-18 02:19:17 +00:00
texture_atlas.rs add ReflectAsset and ReflectHandle (#5923) 2022-10-28 20:42:33 +00:00
texture_atlas_builder.rs Move sprite::Rect into bevy_math (#5686) 2022-09-02 12:35:23 +00:00