summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-05 17:44:34 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-05 17:44:34 +0000
commit016ae0018fe4ca61cc251cf0cacee6757341707e (patch)
tree3d794ac0713b6fd3e66bcd1246281a3568c1ec61 /Graphics/GraphicsEngineD3D12
parentSilenced OpenGL deprecation warnings on Mac (diff)
downloadDiligentCore-016ae0018fe4ca61cc251cf0cacee6757341707e.tar.gz
DiligentCore-016ae0018fe4ca61cc251cf0cacee6757341707e.zip
Added line strip topology
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp
index 6213ce13..c2fa083c 100644
--- a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp
@@ -52,6 +52,7 @@ public:
m_Map[PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP] = D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE;
m_Map[PRIMITIVE_TOPOLOGY_POINT_LIST] = D3D12_PRIMITIVE_TOPOLOGY_TYPE_POINT;
m_Map[PRIMITIVE_TOPOLOGY_LINE_LIST] = D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE;
+ m_Map[PRIMITIVE_TOPOLOGY_LINE_STRIP] = D3D12_PRIMITIVE_TOPOLOGY_TYPE_LINE;
// clang-format on
for (int t = static_cast<int>(PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST); t < static_cast<int>(PRIMITIVE_TOPOLOGY_NUM_TOPOLOGIES); ++t)
m_Map[t] = D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH;