Skip to content

Commit

Permalink
fix storage buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao committed Jan 29, 2024
1 parent ef113bf commit fff67d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgpu/gpu_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ export class GPUTestBase extends Fixture<GPUTestSubcaseBatchState> {
});

const storageBuffer = this.device.createBuffer({
size: sampleCount * type.size * componentCount,
size: sampleCount * type.size * componentCount * width * height,
usage: GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST | GPUBufferUsage.COPY_SRC,
});
this.trackForCleanup(storageBuffer);
Expand Down

0 comments on commit fff67d3

Please sign in to comment.