Lines Matching refs:num_primitives
110 size_t num_primitives; in count_tessellated_primitives() local
113 num_primitives = prim->count; in count_tessellated_primitives()
116 num_primitives = prim->count >= 2 ? prim->count - 1 : 0; in count_tessellated_primitives()
119 num_primitives = prim->count >= 2 ? prim->count : 0; in count_tessellated_primitives()
122 num_primitives = prim->count / 2; in count_tessellated_primitives()
127 num_primitives = prim->count >= 3 ? prim->count - 2 : 0; in count_tessellated_primitives()
130 num_primitives = prim->count / 3; in count_tessellated_primitives()
133 num_primitives = prim->count >= 4 ? ((prim->count / 2) - 1) * 2 : 0; in count_tessellated_primitives()
136 num_primitives = (prim->count / 4) * 2; in count_tessellated_primitives()
140 num_primitives = 0; in count_tessellated_primitives()
143 return num_primitives * prim->num_instances; in count_tessellated_primitives()