@@ -38,11 +38,11 @@ export const createBindGroupDescriptor = (
38
38
) : BindGroupsObjectsAndLayout => {
39
39
const layoutEntries : GPUBindGroupLayoutEntry [ ] = [ ] ;
40
40
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
+ } ) ;
46
46
}
47
47
48
48
const bindGroupLayout = device . createBindGroupLayout ( {
@@ -58,10 +58,10 @@ export const createBindGroupDescriptor = (
58
58
for ( let i = 0 ; i < resources . length ; i ++ ) {
59
59
const groupEntries : GPUBindGroupEntry [ ] = [ ] ;
60
60
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
+ } ) ;
65
65
}
66
66
const newBindGroup = device . createBindGroup ( {
67
67
label : `${ label } .bindGroup${ i } ` ,
0 commit comments