mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Merge #1183
1183: Improve docs language r=cwfitzgerald a=danielzgtg **Description** - s/fact culling/face culling/g - s/are draw /are drawn /g **Testing** - There are no code change. - The documentation should be less confusing Co-authored-by: Daniel Tang <danielzgtg.opensource@gmail.com>
This commit is contained in:
@@ -847,9 +847,9 @@ impl Default for CullMode {
|
||||
pub enum PolygonMode {
|
||||
/// Polygons are filled
|
||||
Fill = 0,
|
||||
/// Polygons are draw as line segments
|
||||
/// Polygons are drawn as line segments
|
||||
Line = 1,
|
||||
/// Polygons are draw as points
|
||||
/// Polygons are drawn as points
|
||||
Point = 2,
|
||||
}
|
||||
|
||||
@@ -873,7 +873,7 @@ pub struct PrimitiveState {
|
||||
/// The face to consider the front for the purpose of culling and stencil operations.
|
||||
#[cfg_attr(any(feature = "trace", feature = "replay"), serde(default))]
|
||||
pub front_face: FrontFace,
|
||||
/// The fact culling mode.
|
||||
/// The face culling mode.
|
||||
#[cfg_attr(any(feature = "trace", feature = "replay"), serde(default))]
|
||||
pub cull_mode: CullMode,
|
||||
/// Controls the way each polygon is rasterized. Can be either `Fill` (default), `Line` or `Point`
|
||||
|
||||
Reference in New Issue
Block a user