diff options
Diffstat (limited to '')
| -rw-r--r-- | wgpu/src/triangle.rs | 4 | ||||
| -rw-r--r-- | wgpu/src/widget/canvas/frame.rs | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 6f3adbe4..3cc1d3fb 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -91,7 +91,7 @@ impl Pipeline {                      write_mask: wgpu::ColorWrite::ALL,                  }],                  depth_stencil_state: None, -                index_format: wgpu::IndexFormat::Uint16, +                index_format: wgpu::IndexFormat::Uint32,                  vertex_buffers: &[wgpu::VertexBufferDescriptor {                      stride: mem::size_of::<Vertex2D>() as u64,                      step_mode: wgpu::InputStepMode::Vertex, @@ -233,5 +233,5 @@ pub struct Mesh2D {      /// The list of vertex indices that defines the triangles of the mesh.      ///      /// Therefore, this list should always have a length that is a multiple of 3. -    pub indices: Vec<u16>, +    pub indices: Vec<u32>,  } diff --git a/wgpu/src/widget/canvas/frame.rs b/wgpu/src/widget/canvas/frame.rs index 687f6c37..27d676d6 100644 --- a/wgpu/src/widget/canvas/frame.rs +++ b/wgpu/src/widget/canvas/frame.rs @@ -9,7 +9,7 @@ use crate::{  pub struct Frame {      width: f32,      height: f32, -    buffers: lyon::tessellation::VertexBuffers<triangle::Vertex2D, u16>, +    buffers: lyon::tessellation::VertexBuffers<triangle::Vertex2D, u32>,      transforms: Transforms,  } | 
