declare const _default: "\n// the number of threads the dispatch was set up for\nuniform computeDispatchThreadCount: vec3u;\n\n// the number of threads in a row of the dispatch - the x of the thread count, or the threads in a\n// row of workgroups when a dispatch in one dimension is spread over rows of them\nuniform computeDispatchRowThreads: u32;\n\nfn dispatchThreadCount() -> vec3u {\n return uniform.computeDispatchThreadCount;\n}\n\nfn dispatchThreadIndex(globalId: vec3u) -> u32 {\n let count = uniform.computeDispatchThreadCount;\n return (globalId.z * count.y + globalId.y) * uniform.computeDispatchRowThreads + globalId.x;\n}\n\nfn dispatchThreadInRange(globalId: vec3u) -> bool {\n let count = uniform.computeDispatchThreadCount;\n\n // spread over rows of workgroups, a dispatch in one dimension is rounded up to whole rows\n if (uniform.computeDispatchRowThreads != count.x) {\n return dispatchThreadIndex(globalId) < count.x;\n }\n return all(globalId < count);\n}\n"; export default _default;