Skip to content

Commit

Permalink
fixing some timestamp write setup
Browse files Browse the repository at this point in the history
  • Loading branch information
John Owens committed Nov 6, 2024
1 parent d056971 commit d12bd2d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions node-deno-timing-mre.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function main(navigator) {
});

const timestampWrites = {
querySet,
querySet: querySet,
beginningOfPassWriteIndex: 0, // Write timestamp in index 0 when pass begins.
endOfPassWriteIndex: 1, // Write timestamp in index 1 when pass ends.
};
Expand All @@ -119,15 +119,17 @@ async function main(navigator) {
usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ,
});

const memcpyPass = encoder.beginComputePass(timestampWrites);
const oldMemcpyPassDescriptor = {
const memcpyPassDescriptor = {
label: "memcpy compute pass",
timestampWrites: {
querySet,
querySet: querySet,
beginningOfPassWriteIndex: 0,
endOfPassWriteIndex: 1,
},
};
const memcpyPass = encoder.beginComputePass({
timestampWrites: timestampWrites,
}); // memcpyPassDescriptor); //timestampWrites);

memcpyPass.setPipeline(memcpyPipeline);
memcpyPass.setBindGroup(0, memcpyBindGroup);
Expand Down

0 comments on commit d12bd2d

Please sign in to comment.