std::vector<vk::VkViewport> viewports { { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f } };
std::vector<vk::VkRect2D> scissors { { { 0u, 0u }, { 0u, 0u } } };
- const PipelineCreateInfo::ColorBlendState::Attachment attachmentState;
- const PipelineCreateInfo::ColorBlendState colorBlendState(1u, static_cast<const vk::VkPipelineColorBlendAttachmentState*>(&attachmentState));
- const PipelineCreateInfo::RasterizerState rasterizerState;
- const PipelineCreateInfo::DepthStencilState depthStencilState(false, false, vk::VK_COMPARE_OP_NEVER, true);
- const PipelineCreateInfo::DynamicState dynamicState;
+ const PipelineCreateInfo::ColorBlendState::Attachment attachmentState;
+ const PipelineCreateInfo::ColorBlendState colorBlendState(1u, static_cast<const vk::VkPipelineColorBlendAttachmentState*>(&attachmentState));
+ const PipelineCreateInfo::RasterizerState rasterizerState;
+ const PipelineCreateInfo::DepthStencilState::StencilOpState stencilOpState(vk::VK_STENCIL_OP_KEEP, vk::VK_STENCIL_OP_KEEP, vk::VK_STENCIL_OP_KEEP);
+ const PipelineCreateInfo::DepthStencilState depthStencilState(false, false, vk::VK_COMPARE_OP_NEVER, true, 0u, stencilOpState, stencilOpState);
+ const PipelineCreateInfo::DynamicState dynamicState;
m_pipeline.setDefaultTopology(m_topology)
.setDynamicState(static_cast<const vk::VkPipelineDynamicStateCreateInfo*>(&dynamicState))