diff --git a/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.cpp b/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.cpp index aa319c2a..f42fbdf5 100644 --- a/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.cpp +++ b/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.cpp @@ -153,7 +153,7 @@ void Cmd::CopyImageToImage(Ref src, Ref dst) const vkCmdBlitImage2(CmdBuffer, &blitInfo); } -void Cmd::SetLineRasterizationMode(VkLineRasterizationModeEXT mode) const +void Cmd::SetLineRasterizationMode(VkLineRasterizationMode mode) const { vkCmdSetLineRasterizationModeEXT(CmdBuffer, mode); } diff --git a/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.h b/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.h index 8542d704..c388a0e7 100644 --- a/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.h +++ b/Nuake/Source/Nuake/Rendering/Vulkan/Cmd.h @@ -35,7 +35,7 @@ namespace Nuake void TransitionImageLayout(Ref img, VkImageLayout layout) const; void CopyImageToImage(Ref src, Ref dst) const; - void SetLineRasterizationMode(VkLineRasterizationModeEXT mode) const; + void SetLineRasterizationMode(VkLineRasterizationMode mode) const; void SetLineWidth(float lineWidth) const; void SetLineStippleEnabled(bool enabled) const; void SetLineStipple(uint32_t factor, uint16_t pattern) const; diff --git a/Nuake/Source/Nuake/Rendering/Vulkan/DebugCmd.cpp b/Nuake/Source/Nuake/Rendering/Vulkan/DebugCmd.cpp index ee22edf0..af24e1d2 100644 --- a/Nuake/Source/Nuake/Rendering/Vulkan/DebugCmd.cpp +++ b/Nuake/Source/Nuake/Rendering/Vulkan/DebugCmd.cpp @@ -54,8 +54,9 @@ Ref DebugLineCmd::GetScene() const void DebugLineCmd::DrawLine(const Matrix4& transform, const Color& inColor, float lineWidth) { cmd.SetPolygonMode(VK_POLYGON_MODE_LINE); + cmd.SetLineRasterizationMode(VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH); cmd.SetPrimitiveTopology(VK_PRIMITIVE_TOPOLOGY_LINE_LIST); - cmd.SetLineStipple(2, 0b1110110100000000); + cmd.SetLineStipple(2, 0b1111111100000000); cmd.SetLineStippleEnabled(true); lineConstant.LineColor = inColor; lineConstant.Transform = transform;