From 610394b6957d9424aec1c50d927e34a0fb3fe5fd Mon Sep 17 00:00:00 2001
From: Héctor Ramón Jiménez <hector@hecrj.dev>
Date: Thu, 2 May 2024 15:28:46 +0200
Subject: Rename `global_scale` to `scale` in `wgpu::image`

---
 wgpu/src/image/mod.rs | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

(limited to 'wgpu/src/image')

diff --git a/wgpu/src/image/mod.rs b/wgpu/src/image/mod.rs
index 3ec341fc..285eb2f6 100644
--- a/wgpu/src/image/mod.rs
+++ b/wgpu/src/image/mod.rs
@@ -212,10 +212,9 @@ impl Pipeline {
         belt: &mut wgpu::util::StagingBelt,
         images: &Batch,
         transformation: Transformation,
-        global_scale: f32,
+        scale: f32,
     ) {
-        let transformation =
-            transformation * Transformation::scale(global_scale);
+        let transformation = transformation * Transformation::scale(scale);
 
         let nearest_instances: &mut Vec<Instance> = &mut Vec::new();
         let linear_instances: &mut Vec<Instance> = &mut Vec::new();
@@ -263,12 +262,7 @@ impl Pipeline {
                     let size = [bounds.width, bounds.height];
 
                     if let Some(atlas_entry) = cache.upload_vector(
-                        device,
-                        encoder,
-                        handle,
-                        *color,
-                        size,
-                        global_scale,
+                        device, encoder, handle, *color, size, scale,
                     ) {
                         add_instances(
                             [bounds.x, bounds.y],
-- 
cgit