Getting there

This commit is contained in:
Andras Schmelczer 2026-05-22 07:54:38 +01:00
parent ed5a4379db
commit f300dbd394
43 changed files with 1218 additions and 464 deletions

View file

@ -1,4 +1,4 @@
import { getAgentWorkgroupSize } from './agent-dispatch';
import { getMinAgentWorkgroupSize } from './agent-dispatch';
export const AGENT_FLOAT_COUNT = 8;
export const AGENT_SIZE_IN_BYTES = AGENT_FLOAT_COUNT * Float32Array.BYTES_PER_ELEMENT;
@ -58,7 +58,7 @@ export const getMaxSupportedAgentCount = (
Math.floor(device.limits.maxBufferSize / AGENT_SIZE_IN_BYTES),
Math.floor(storageBufferBindingSize / AGENT_SIZE_IN_BYTES),
Math.floor(device.limits.maxComputeWorkgroupsPerDimension) *
getAgentWorkgroupSize(device)
getMinAgentWorkgroupSize(device)
)
);
};