diff options
author | 2024-09-22 12:21:57 +0200 | |
---|---|---|
committer | 2024-09-22 12:22:49 +0200 | |
commit | f984e759eb409762ea8c7c5d75f6051740373e16 (patch) | |
tree | 6f00c5453bc86468a6d37eace0ade25c9e942f8c /wgpu | |
parent | 88a2fac1f9171f162ecfe2a033cba5ae62e23231 (diff) | |
download | iced-f984e759eb409762ea8c7c5d75f6051740373e16.tar.gz iced-f984e759eb409762ea8c7c5d75f6051740373e16.tar.bz2 iced-f984e759eb409762ea8c7c5d75f6051740373e16.zip |
always increment solid/gradient count in wgpu mesh rendering
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/triangle.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 3d0869e7..fb858c10 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -505,6 +505,14 @@ impl Layer { .intersection(&(mesh.clip_bounds() * transformation)) .and_then(Rectangle::snap) else { + match mesh { + Mesh::Solid { .. } => { + num_solids += 1; + } + Mesh::Gradient { .. } => { + num_gradients += 1; + } + } continue; }; |