Verified Commit 80a608ae authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Added patch list as topology type


Signed-off-by: Tobias Frisch's avatarTobias Frisch <tfrisch@uni-koblenz.de>
parent 4a27ab19
Pipeline #28222 failed with stages
in 0 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment