Skip to content

Commit 6832da7

Browse files
Added PolygonMode_Point
1 parent ab1489f commit 6832da7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lvk/LVK.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ struct DepthState {
420420
enum PolygonMode : uint8_t {
421421
PolygonMode_Fill = 0,
422422
PolygonMode_Line = 1,
423+
PolygonMode_Point = 2,
423424
};
424425

425426
enum class VertexFormat {

lvk/vulkan/VulkanClasses.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ VkPolygonMode polygonModeToVkPolygonMode(lvk::PolygonMode mode) {
301301
return VK_POLYGON_MODE_FILL;
302302
case lvk::PolygonMode_Line:
303303
return VK_POLYGON_MODE_LINE;
304+
case lvk::PolygonMode_Point:
305+
return VK_POLYGON_MODE_POINT;
304306
}
305307
LVK_ASSERT_MSG(false, "Implement a missing polygon fill mode");
306308
return VK_POLYGON_MODE_FILL;

0 commit comments

Comments
 (0)