Change subgroup zoo to use a triangle list instead of strip

* This produces more consistent subgroup thread assignments in the vertex
  shader.
This commit is contained in:
baldurk
2025-09-11 14:09:53 +01:00
parent fb6d4735b3
commit 7c5b76dcad
+5 -2
View File
@@ -75,6 +75,9 @@ void main()
{
vec2 positions[] = {
vec2(-1.0f, 1.0f),
vec2( 1.0f, 1.0f),
vec2(-1.0f, -1.0f),
vec2( 1.0f, 1.0f),
vec2(-1.0f, -1.0f),
vec2( 1.0f, -1.0f),
@@ -341,7 +344,7 @@ void main()
pipeCreateInfo.renderPass = renderPass;
pipeCreateInfo.layout = layout;
pipeCreateInfo.inputAssemblyState.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
pipeCreateInfo.inputAssemblyState.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
std::map<std::string, std::string> macros;
@@ -514,7 +517,7 @@ void main()
VK_SUBPASS_CONTENTS_INLINE);
vkh::cmdPushConstants(cmd, layout, i);
vkCmdDraw(cmd, 4, 1, 0, 0);
vkCmdDraw(cmd, 6, 1, 0, 0);
vkCmdEndRenderPass(cmd);
}