Getting there
This commit is contained in:
parent
ed5a4379db
commit
f300dbd394
43 changed files with 1218 additions and 464 deletions
|
|
@ -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)
|
||||
)
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue