[D3D12] Indexed line loops

This commit is contained in:
Triang3l
2018-10-23 13:36:03 +03:00
parent 096d78a2f9
commit 31e0581304
2 changed files with 118 additions and 27 deletions

View File

@@ -1149,6 +1149,12 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
bool indexed = index_buffer_info != nullptr && index_buffer_info->guest_base;
// TODO(Triang3l): Non-indexed line loops (by movc'ing zero to the vertex
// index if it's one beyond the end).
if (primitive_type == PrimitiveType::kLineLoop && !indexed) {
return false;
}
// Set the primitive topology.
PrimitiveType primitive_type_converted =
PrimitiveConverter::GetReplacementPrimitiveType(primitive_type);