mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user