MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / IsLineTopology

Function IsLineTopology

layers/utils/vk_api_utils.h:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78static inline bool IsPointTopology(VkPrimitiveTopology topology) { return topology == VK_PRIMITIVE_TOPOLOGY_POINT_LIST; };
79
80static inline bool IsLineTopology(VkPrimitiveTopology topology) {
81 return (topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST || topology == VK_PRIMITIVE_TOPOLOGY_LINE_STRIP ||
82 topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY ||
83 topology == VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY);
84};
85
86static inline bool IsTriangleTopology(VkPrimitiveTopology topology) {
87 return (topology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST || topology == VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP ||

Calls

no outgoing calls

Tested by

no test coverage detected