@@ -38,11 +38,11 @@ export const createBindGroupDescriptor = (
3838) : BindGroupsObjectsAndLayout => {
3939 const layoutEntries : GPUBindGroupLayoutEntry [ ] = [ ] ;
4040 for ( let i = 0 ; i < bindings . length ; i ++ ) {
41- const layoutEntry : any = { } ;
42- layoutEntry . binding = bindings [ i ] ;
43- layoutEntry . visibility = visibilities [ i % visibilities . length ] ;
44- layoutEntry [ resourceTypes [ i ] ] = resourceLayouts [ i ] ;
45- layoutEntries . push ( layoutEntry ) ;
41+ layoutEntries . push ( {
42+ binding : bindings [ i ] ,
43+ visibility : visibilities [ i % visibilities . length ] ,
44+ [ resourceTypes [ i ] ] : resourceLayouts [ i ] ,
45+ } ) ;
4646 }
4747
4848 const bindGroupLayout = device . createBindGroupLayout ( {
@@ -58,10 +58,10 @@ export const createBindGroupDescriptor = (
5858 for ( let i = 0 ; i < resources . length ; i ++ ) {
5959 const groupEntries : GPUBindGroupEntry [ ] = [ ] ;
6060 for ( let j = 0 ; j < resources [ 0 ] . length ; j ++ ) {
61- const groupEntry : any = { } ;
62- groupEntry . binding = j ;
63- groupEntry . resource = resources [ i ] [ j ] ;
64- groupEntries . push ( groupEntry ) ;
61+ groupEntries . push ( {
62+ binding : j ,
63+ resource : resources [ i ] [ j ] ,
64+ } ) ;
6565 }
6666 const newBindGroup = device . createBindGroup ( {
6767 label : `${ label } .bindGroup${ i } ` ,
0 commit comments