mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
Fix some comment error.
This commit is contained in:
1 parent
39e8921fe8
commit
5cdbf3f946
1 file changed
+2
-2
@@ -904,7 +904,7 @@ impl Default for TextureViewDimension {
|
||||
}
|
||||
|
||||
impl TextureViewDimension {
|
||||
/// Get the texture dimension required fo this texture view dimension.
|
||||
/// Get the texture dimension required of this texture view dimension.
|
||||
pub fn compatible_texture_dimension(self) -> TextureDimension {
|
||||
match self {
|
||||
Self::D1 => TextureDimension::D1,
|
||||
@@ -1112,7 +1112,7 @@ pub enum PrimitiveTopology {
|
||||
TriangleList = 3,
|
||||
/// Vertex data is a triangle strip. Each set of three adjacent vertices form a triangle.
|
||||
///
|
||||
/// Vertices `0 1 2 3 4 5` creates four triangles `0 1 2`, `2 1 3`, `3 2 4`, and `4 3 5`
|
||||
/// Vertices `0 1 2 3 4 5` creates four triangles `0 1 2`, `2 1 3`, `2 3 4`, and `4 3 5`
|
||||
TriangleStrip = 4,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user