Clip and cull Mesh2D primitives in iced_wgpu
This commit is contained in:
parent
69c60d372c
commit
e65585ae17
5 changed files with 45 additions and 25 deletions
|
|
@ -88,6 +88,7 @@ mod rainbow {
|
|||
Primitive::Translate {
|
||||
translation: Vector::new(b.x, b.y),
|
||||
content: Box::new(Primitive::Mesh2D {
|
||||
size: b.size(),
|
||||
buffers: Mesh2D {
|
||||
vertices: vec![
|
||||
Vertex2D {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue