实线画出来了。

This commit is contained in:
xsl
2025-09-22 19:13:48 +08:00
parent f7d41908dc
commit cb59a5c1c8
@@ -1336,7 +1336,7 @@ void TextureLoading::prepare_pipeline_point_line()
// 输入装配 (绘制点列表) // 输入装配 (绘制点列表)
VkPipelineInputAssemblyStateCreateInfo input_assembly_state{ VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO }; VkPipelineInputAssemblyStateCreateInfo input_assembly_state{ VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO };
input_assembly_state.topology = VK_PRIMITIVE_TOPOLOGY_LINE_LIST; input_assembly_state.topology = VK_PRIMITIVE_TOPOLOGY_LINE_STRIP;// VK_PRIMITIVE_TOPOLOGY_LINE_LIST;
input_assembly_state.primitiveRestartEnable = VK_FALSE; input_assembly_state.primitiveRestartEnable = VK_FALSE;
// 光栅化 // 光栅化
@@ -2064,7 +2064,7 @@ void TextureLoading::update_point_vertex_buffer_line(float* pos, int count, floa
glm::vec3 color = { r,g,b }; glm::vec3 color = { r,g,b };
// 1. 准备顶点数据 // 1. 准备顶点数据
std::vector<LineVertex> vertices(point_count_line); std::vector<LineVertex> vertices;
for (int i = 0; i < point_count_line - 1; ++i) for (int i = 0; i < point_count_line - 1; ++i)
{ {