replace topologyState with primitiveType

submit_rewrite
cosmonaut 2021-01-13 21:06:20 -08:00
parent b25daa5198
commit 79bc36d99d
2 changed files with 3 additions and 9 deletions

View File

@ -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;

View File

@ -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 */