Maximise agent buffer size

This commit is contained in:
Andras Schmelczer 2023-05-27 10:49:09 +01:00
parent f1808d5707
commit 5dc943bb91
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 12 additions and 8 deletions

View file

@ -21,6 +21,7 @@ export const initializeGpu = async (): Promise<GPUDevice> => {
const gpuDevice = await adapter.requestDevice({
requiredLimits: {
maxBufferSize: adapter.limits.maxBufferSize,
maxStorageBufferBindingSize: adapter.limits.maxStorageBufferBindingSize,
maxComputeInvocationsPerWorkgroup: adapter.limits.maxComputeInvocationsPerWorkgroup,
maxComputeWorkgroupSizeX: adapter.limits.maxComputeWorkgroupSizeX,
maxComputeWorkgroupSizeY: adapter.limits.maxComputeWorkgroupSizeY,