Skip to content

Commit

Permalink
fix timing-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 12, 2023
1 parent c22200b commit 3244f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgpu/resources/js/timing-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class TimingHelper {
assert(this.#state === 'need resolve', 'must call addTimestampToPass');
this.#state = 'wait for result';

this.#resultBuffer = this.#resultBuffers.pop || this.#device.createBuffer({
this.#resultBuffer = this.#resultBuffers.pop() || this.#device.createBuffer({
size: 2 * 8,
usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.MAP_READ,
});
Expand Down

0 comments on commit 3244f36

Please sign in to comment.