Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 11, 2024
1 parent 3542842 commit 32ebc83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sample/occlusionQuery/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ const lerpV = (a: number[], b: number[], t: number) =>
const pingPongSine = (t: number) => Math.sin(t * Math.PI * 2) * 0.5 + 0.5;

let depthTexture: GPUTexture | undefined;
let results: BigUint64Array | undefined;

let time = 0;
let then = 0;
Expand Down Expand Up @@ -331,7 +330,7 @@ function render(now: number) {

if (resultBuffer.mapState === 'unmapped') {
resultBuffer.mapAsync(GPUMapMode.READ).then(() => {
results = new BigUint64Array(resultBuffer.getMappedRange()).slice();
const results = new BigUint64Array(resultBuffer.getMappedRange()).slice();
resultBuffer.unmap();

const visible = objectInfos
Expand Down

0 comments on commit 32ebc83

Please sign in to comment.