Add VK_Workgroup_Zoo unit tests for workgroup query functions

gl_SubgroupSize
gl_SubgroupInvocationID
subgroupElect()
This commit is contained in:
Jake Turner
2025-04-06 12:50:08 +01:00
parent fdc2125e7b
commit e0f8f29fa7
+7
View File
@@ -266,6 +266,13 @@ void main()
data.x += subgroupAdd(id);
}
}
else if(IsTest(9))
{
// Query function : unit tests
data.x = float(gl_SubgroupSize);
data.y = float(gl_SubgroupInvocationID);
data.z = float(subgroupElect());
}
SetOuput(data);
}