Clip and cull Mesh2D primitives in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2020-04-28 04:41:09 +02:00
parent 69c60d372c
commit e65585ae17
5 changed files with 45 additions and 25 deletions

View file

@ -267,6 +267,7 @@ impl Frame {
pub fn into_geometry(mut self) -> Geometry {
if !self.buffers.indices.is_empty() {
self.primitives.push(Primitive::Mesh2D {
size: self.size,
buffers: triangle::Mesh2D {
vertices: self.buffers.vertices,
indices: self.buffers.indices,