Skip to content

Commit

Permalink
provide scene downloading path+increase limits for buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryszzz committed Oct 16, 2024
1 parent 068499f commit 02fef4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions INSTRUCTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ In this project, you will implement the 3D Gaussian Splat Viewer. You are given
- `camera/` includes camera controls, camera file loading.
- `utils/` includes PLY file loading, utility functions for debugging.

<b>Scene Files: </b> download scene files from [drive](https://drive.google.com/drive/folders/1UbcFvkwZhcdnhAlpua7n-UUjxDaeiYJC?usp=sharing).

## Running the code

Follow these steps to install and view the project:
Expand Down
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ import { assert } from './utils/util';
h.innerText = 'No adapter is available for WebGPU.';
return;
}
// console.log(adapter.limits.maxComputeWorkgroupStorageSize);

const device = await adapter.requestDevice({
requiredLimits: { maxComputeWorkgroupStorageSize: adapter.limits.maxComputeWorkgroupStorageSize },
requiredLimits: {
maxComputeWorkgroupStorageSize: adapter.limits.maxComputeWorkgroupStorageSize,
maxStorageBufferBindingSize: adapter.limits. maxStorageBufferBindingSize
},
});

const canvas = document.querySelector<HTMLCanvasElement>('#webgpu-canvas');
Expand Down

0 comments on commit 02fef4a

Please sign in to comment.