27 Aug
2021
27 Aug
'21
7:05 p.m.
On Fri, 27 Aug 2021 at 05:17, Conor McCarthy <cmccarthy(a)codeweavers.com> wrote:
+static bool vk_topology_can_restart(VkPrimitiveTopology topology) +{ + switch (topology) + { + case VK_PRIMITIVE_TOPOLOGY_POINT_LIST: + case VK_PRIMITIVE_TOPOLOGY_LINE_LIST: + case VK_PRIMITIVE_TOPOLOGY_PATCH_LIST: + case VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST: + return false; + + default: + return true; + } +} + Those aren't the only Vulkan primitive topologies that can't be restarted. We never return topologies with adjacency from vk_topology_from_d3d12_topology() (although perhaps we should), but we shouldn't know or care about that here.