summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/triangle.rs8
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;
};