#include "dxbc_util.h" namespace dxvk { uint32_t primitiveVertexCount(DxbcPrimitive primitive) { static const std::array s_vertexCounts = { 0, // Undefined 1, // Point 2, // Line 3, // Triangle 0, // Undefined 0, // Undefined 4, // Line with adjacency 6, // Triangle with adjacency }; if (primitive >= DxbcPrimitive::Patch1) { return static_cast(primitive) - static_cast(DxbcPrimitive::Patch1); } else { return s_vertexCounts.at( static_cast(primitive)); } } }