@@ -1372,10 +1372,10 @@ where
13721372 }
13731373
13741374 if let Some ( required_binding_array_size) = required_binding_array_size {
1375- sampler_bindings. extend (
1376- iter :: repeat ( & * * fallback_sampler)
1377- . take ( required_binding_array_size as usize - sampler_bindings. len ( ) ) ,
1378- ) ;
1375+ sampler_bindings. extend ( iter :: repeat_n (
1376+ & * * fallback_sampler,
1377+ required_binding_array_size as usize - sampler_bindings. len ( ) ,
1378+ ) ) ;
13791379 }
13801380
13811381 let binding_number = bindless_resource_type
@@ -1436,10 +1436,10 @@ where
14361436 }
14371437
14381438 if let Some ( required_binding_array_size) = required_binding_array_size {
1439- texture_bindings. extend (
1440- iter :: repeat ( & * fallback_image. texture_view )
1441- . take ( required_binding_array_size as usize - texture_bindings. len ( ) ) ,
1442- ) ;
1439+ texture_bindings. extend ( iter :: repeat_n (
1440+ & * fallback_image. texture_view ,
1441+ required_binding_array_size as usize - texture_bindings. len ( ) ,
1442+ ) ) ;
14431443 }
14441444
14451445 binding_resource_arrays. push ( (
@@ -1489,14 +1489,14 @@ where
14891489 . collect ( ) ;
14901490
14911491 if let Some ( required_binding_array_size) = required_binding_array_size {
1492- buffer_bindings. extend (
1493- iter :: repeat ( BufferBinding {
1492+ buffer_bindings. extend ( iter :: repeat_n (
1493+ BufferBinding {
14941494 buffer : fallback_buffer,
14951495 offset : 0 ,
14961496 size : None ,
1497- } )
1498- . take ( required_binding_array_size as usize - buffer_bindings. len ( ) ) ,
1499- ) ;
1497+ } ,
1498+ required_binding_array_size as usize - buffer_bindings. len ( ) ,
1499+ ) ) ;
15001500 }
15011501
15021502 binding_resource_arrays. push ( (
0 commit comments