replace topologyState with primitiveType
parent
b25daa5198
commit
79bc36d99d
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue