Skip to content

Commit 408bb06

Browse files
committed
Fmt.
1 parent 88d9f70 commit 408bb06

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

crates/processing_render/src/graphics.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ use crate::{
2929
Flush,
3030
error::{ProcessingError, Result},
3131
image::{Image, bytes_to_pixels, create_readback_buffer, pixel_size, pixels_to_bytes},
32-
render::{RenderState, command::{CommandBuffer, DrawCommand}},
32+
render::{
33+
RenderState,
34+
command::{CommandBuffer, DrawCommand},
35+
},
3336
surface::Surface,
3437
};
3538

crates/processing_render/src/render/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,12 @@ fn needs_batch(batch: &BatchState, state: &RenderState, material_key: &MaterialK
247247
material_changed || transform_changed
248248
}
249249

250-
fn start_batch(res: &mut RenderResources, batch: &mut BatchState, state: &RenderState, material_key: MaterialKey) {
250+
fn start_batch(
251+
res: &mut RenderResources,
252+
batch: &mut BatchState,
253+
state: &RenderState,
254+
material_key: MaterialKey,
255+
) {
251256
flush_batch(res, batch);
252257
batch.material_key = Some(material_key);
253258
batch.transform = state.transform.current();

0 commit comments

Comments
 (0)