Change VK_Workgroup_Zoo test to be deterministic

This commit is contained in:
Jake Turner
2025-08-19 20:52:22 +01:00
parent b3981e9bf6
commit 754b5d21eb
+2 -2
View File
@@ -95,8 +95,8 @@ void SetOutput(vec4 val)
void Init(vec4 val)
{
tid = gl_GlobalInvocationID;
flatId = gl_SubgroupInvocationID;
tid = gl_LocalInvocationID;
flatId = tid.z * gl_WorkGroupSize.x * gl_WorkGroupSize.y + tid.y * gl_WorkGroupSize.x + tid.x;
gsmUint4[flatId].xyz = tid;
gsmUint4[flatId].z = tid.x;
SetOutput(val);