Skip to content

Commit 610394b

Browse files
committed
Rename global_scale to scale in wgpu::image
1 parent a57313b commit 610394b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

wgpu/src/image/mod.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,9 @@ impl Pipeline {
212212
belt: &mut wgpu::util::StagingBelt,
213213
images: &Batch,
214214
transformation: Transformation,
215-
global_scale: f32,
215+
scale: f32,
216216
) {
217-
let transformation =
218-
transformation * Transformation::scale(global_scale);
217+
let transformation = transformation * Transformation::scale(scale);
219218

220219
let nearest_instances: &mut Vec<Instance> = &mut Vec::new();
221220
let linear_instances: &mut Vec<Instance> = &mut Vec::new();
@@ -263,12 +262,7 @@ impl Pipeline {
263262
let size = [bounds.width, bounds.height];
264263

265264
if let Some(atlas_entry) = cache.upload_vector(
266-
device,
267-
encoder,
268-
handle,
269-
*color,
270-
size,
271-
global_scale,
265+
device, encoder, handle, *color, size, scale,
272266
) {
273267
add_instances(
274268
[bounds.x, bounds.y],

0 commit comments

Comments
 (0)