@@ -242,14 +242,15 @@ impl Node for BloomNode {
242
242
} ,
243
243
view_entity,
244
244
) ;
245
- prefilter_pass. set_render_pipeline ( downsampling_prefilter_pipeline) ;
246
- prefilter_pass. set_bind_group (
247
- 0 ,
248
- & bind_groups. prefilter_bind_group ,
249
- & [ uniform_index. index ( ) ] ,
250
- ) ;
251
- prefilter_pass. set_camera_viewport ( & camera) ;
252
- prefilter_pass. draw ( 0 ..3 , 0 ..1 ) ;
245
+ prefilter_pass
246
+ . set_camera_viewport ( & camera)
247
+ . set_render_pipeline ( downsampling_prefilter_pipeline)
248
+ . set_bind_group (
249
+ 0 ,
250
+ & bind_groups. prefilter_bind_group ,
251
+ & [ uniform_index. index ( ) ] ,
252
+ )
253
+ . draw ( 0 ..3 , 0 ..1 ) ;
253
254
}
254
255
255
256
for mip in 1 ..textures. mip_count {
@@ -266,14 +267,15 @@ impl Node for BloomNode {
266
267
} ,
267
268
view_entity,
268
269
) ;
269
- downsampling_pass. set_render_pipeline ( downsampling_pipeline) ;
270
- downsampling_pass. set_bind_group (
271
- 0 ,
272
- & bind_groups. downsampling_bind_groups [ mip as usize - 1 ] ,
273
- & [ uniform_index. index ( ) ] ,
274
- ) ;
275
- downsampling_pass. set_camera_viewport ( & camera) ;
276
- downsampling_pass. draw ( 0 ..3 , 0 ..1 ) ;
270
+ downsampling_pass
271
+ . set_camera_viewport ( & camera)
272
+ . set_render_pipeline ( downsampling_pipeline)
273
+ . set_bind_group (
274
+ 0 ,
275
+ & bind_groups. downsampling_bind_groups [ mip as usize - 1 ] ,
276
+ & [ uniform_index. index ( ) ] ,
277
+ )
278
+ . draw ( 0 ..3 , 0 ..1 ) ;
277
279
}
278
280
279
281
for mip in ( 1 ..textures. mip_count ) . rev ( ) {
@@ -290,14 +292,15 @@ impl Node for BloomNode {
290
292
} ,
291
293
view_entity,
292
294
) ;
293
- upsampling_pass. set_render_pipeline ( upsampling_pipeline) ;
294
- upsampling_pass. set_bind_group (
295
- 0 ,
296
- & bind_groups. upsampling_bind_groups [ mip as usize - 1 ] ,
297
- & [ uniform_index. index ( ) ] ,
298
- ) ;
299
- upsampling_pass. set_camera_viewport ( & camera) ;
300
- upsampling_pass. draw ( 0 ..3 , 0 ..1 ) ;
295
+ upsampling_pass
296
+ . set_camera_viewport ( & camera)
297
+ . set_render_pipeline ( upsampling_pipeline)
298
+ . set_bind_group (
299
+ 0 ,
300
+ & bind_groups. upsampling_bind_groups [ mip as usize - 1 ] ,
301
+ & [ uniform_index. index ( ) ] ,
302
+ )
303
+ . draw ( 0 ..3 , 0 ..1 ) ;
301
304
}
302
305
303
306
{
@@ -314,14 +317,15 @@ impl Node for BloomNode {
314
317
} ,
315
318
view_entity,
316
319
) ;
317
- upsampling_final_pass. set_render_pipeline ( upsampling_final_pipeline) ;
318
- upsampling_final_pass. set_bind_group (
319
- 0 ,
320
- & bind_groups. upsampling_final_bind_group ,
321
- & [ uniform_index. index ( ) ] ,
322
- ) ;
323
- upsampling_final_pass. set_camera_viewport ( & camera) ;
324
- upsampling_final_pass. draw ( 0 ..3 , 0 ..1 ) ;
320
+ upsampling_final_pass
321
+ . set_camera_viewport ( & camera)
322
+ . set_render_pipeline ( upsampling_final_pipeline)
323
+ . set_bind_group (
324
+ 0 ,
325
+ & bind_groups. upsampling_final_bind_group ,
326
+ & [ uniform_index. index ( ) ] ,
327
+ )
328
+ . draw ( 0 ..3 , 0 ..1 ) ;
325
329
}
326
330
327
331
Ok ( ( ) )
0 commit comments