diff --git a/include/Refresh.h b/include/Refresh.h index 2dccc88..e2e9b27 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -528,12 +528,6 @@ typedef struct Refresh_ShaderStageState uint64_t uniformBufferSize; } Refresh_ShaderStageState; -/* FIXME: this is awkwardly named */ -typedef struct Refresh_TopologyState -{ - Refresh_PrimitiveType topology; -} Refresh_TopologyState; - typedef struct Refresh_ViewportState { const Refresh_Viewport *viewports; @@ -594,7 +588,7 @@ typedef struct Refresh_GraphicsPipelineCreateInfo Refresh_ShaderStageState vertexShaderState; Refresh_ShaderStageState fragmentShaderState; Refresh_VertexInputState vertexInputState; - Refresh_TopologyState topologyState; + Refresh_PrimitiveType primitiveType; Refresh_ViewportState viewportState; Refresh_RasterizerState rasterizerState; Refresh_MultisampleState multisampleState; diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index d19eddb..100f1db 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -4705,10 +4705,10 @@ static Refresh_GraphicsPipeline* VULKAN_CreateGraphicsPipeline( inputAssemblyStateCreateInfo.flags = 0; inputAssemblyStateCreateInfo.primitiveRestartEnable = VK_FALSE; inputAssemblyStateCreateInfo.topology = RefreshToVK_PrimitiveType[ - pipelineCreateInfo->topologyState.topology + pipelineCreateInfo->primitiveType ]; - graphicsPipeline->primitiveType = pipelineCreateInfo->topologyState.topology; + graphicsPipeline->primitiveType = pipelineCreateInfo->primitiveType; /* Viewport */