File tree 1 file changed +14
-1
lines changed
crates/bevy_render/src/view
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,22 @@ impl Plugin for ViewPlugin {
40
40
}
41
41
42
42
#[ derive( Clone ) ]
43
+ /// Configuration resource for [Multi-Sample Anti-Aliasing](https://en.wikipedia.org/wiki/Multisample_anti-aliasing).
44
+ ///
45
+ /// # Example
46
+ /// ```
47
+ /// # use bevy_app::prelude::App;
48
+ /// # use bevy_render::prelude::Msaa;
49
+ /// App::new()
50
+ /// .insert_resource(Msaa { samples: 4 })
51
+ /// .run();
52
+ /// ```
43
53
pub struct Msaa {
44
54
/// The number of samples to run for Multi-Sample Anti-Aliasing. Higher numbers result in
45
- /// smoother edges. Note that WGPU currently only supports 1 or 4 samples.
55
+ /// smoother edges.
56
+ /// Defaults to 4.
57
+ ///
58
+ /// Note that WGPU currently only supports 1 or 4 samples.
46
59
/// Ultimately we plan on supporting whatever is natively supported on a given device.
47
60
/// Check out this issue for more info: <https://github.com/gfx-rs/wgpu/issues/1832>
48
61
/// It defaults to 1 in wasm - <https://github.com/gfx-rs/wgpu/issues/2149>
You can’t perform that action at this time.
0 commit comments