Skip to content

Commit e0f8f29

Browse files
committed
Add VK_Workgroup_Zoo unit tests for workgroup query functions
gl_SubgroupSize gl_SubgroupInvocationID subgroupElect()
1 parent fdc2125 commit e0f8f29

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

util/test/demos/vk/vk_subgroup_zoo.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,13 @@ void main()
266266
data.x += subgroupAdd(id);
267267
}
268268
}
269+
else if(IsTest(9))
270+
{
271+
// Query function : unit tests
272+
data.x = float(gl_SubgroupSize);
273+
data.y = float(gl_SubgroupInvocationID);
274+
data.z = float(subgroupElect());
275+
}
269276
SetOuput(data);
270277
}
271278

0 commit comments

Comments
 (0)