summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-02 15:28:46 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-02 17:28:28 +0200
commit610394b6957d9424aec1c50d927e34a0fb3fe5fd (patch)
tree39fb8a77c1030ea8379c68032d73059bfabcc262 /wgpu
parenta57313b23ecb9843856ca0ea08635b6121fcb2cb (diff)
downloadiced-610394b6957d9424aec1c50d927e34a0fb3fe5fd.tar.gz
iced-610394b6957d9424aec1c50d927e34a0fb3fe5fd.tar.bz2
iced-610394b6957d9424aec1c50d927e34a0fb3fe5fd.zip
Rename `global_scale` to `scale` in `wgpu::image`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/image/mod.rs12
1 files changed, 3 insertions, 9 deletions
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],