Skip to content

Commit

Permalink
removed anys for greggman
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson committed Oct 27, 2023
1 parent 33bce15 commit 4b65446
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/sample/bitonicSort/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export const createBindGroupCluster = (
): BindGroupCluster => {
const layoutEntries: GPUBindGroupLayoutEntry[] = [];
for (let i = 0; i < bindings.length; i++) {
const layoutEntry: any = {};
layoutEntry.binding = bindings[i];
layoutEntry.visibility = visibilities[i % visibilities.length];
layoutEntry[resourceTypes[i]] = resourceLayouts[i];
layoutEntries.push(layoutEntry);
layoutEntries.push({
binding: bindings[i],
visibility: visibilities[i % visibilities.length],
[resourceTypes[i]]: resourceLayouts[i],
});
}

const bindGroupLayout = device.createBindGroupLayout({
Expand All @@ -61,10 +61,10 @@ export const createBindGroupCluster = (
for (let i = 0; i < resources.length; i++) {
const groupEntries: GPUBindGroupEntry[] = [];
for (let j = 0; j < resources[0].length; j++) {
const groupEntry: any = {};
groupEntry.binding = j;
groupEntry.resource = resources[i][j];
groupEntries.push(groupEntry);
groupEntries.push({
binding: j,
resource: resources[i][j],
});
}
const newBindGroup = device.createBindGroup({
label: `${label}.bindGroup${i}`,
Expand Down

0 comments on commit 4b65446

Please sign in to comment.