Skip to content
Snippets Groups Projects
Verified Commit 80a608ae authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Added patch list as topology type

parent 4a27ab19
No related branches found
No related tags found
No related merge requests found
Pipeline #28222 failed
......@@ -14,7 +14,7 @@
namespace vkcv {
enum class PrimitiveTopology{PointList, LineList, TriangleList };
enum class PrimitiveTopology{PointList, LineList, TriangleList, PatchList };
enum class CullMode{ None, Front, Back };
enum class DepthTest { None, Less, LessEqual, Greater, GreatherEqual, Equal };
......
......@@ -51,6 +51,8 @@ namespace vkcv
return vk::PrimitiveTopology::eLineList;
case(PrimitiveTopology::TriangleList):
return vk::PrimitiveTopology::eTriangleList;
case(PrimitiveTopology::PatchList):
return vk::PrimitiveTopology::ePatchList;
default:
vkcv_log(LogLevel::ERROR, "Unknown primitive topology type");
return vk::PrimitiveTopology::eTriangleList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment