This commit is contained in:
Lynix
2020-03-01 20:31:48 +01:00
parent 7180a8d94e
commit 287be5d9b6
2 changed files with 31 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ namespace Nz
{
}
VkPipelineColorBlendAttachmentState VulkanRenderPipeline::BuildColorBlendState(const RenderPipelineInfo& pipelineInfo)
/*VkPipelineColorBlendAttachmentState VulkanRenderPipeline::BuildColorBlendAttachmentState(const RenderPipelineInfo& pipelineInfo)
{
VkPipelineColorBlendAttachmentState colorBlendStates;
colorBlendStates.blendEnable = pipelineInfo.blending;
@@ -29,7 +29,7 @@ namespace Nz
{
blendState.dstAlphaBlendFactor
}*/
}
/*}
else
{
colorBlendStates.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
@@ -40,7 +40,7 @@ namespace Nz
colorBlendStates.alphaBlendOp = VK_BLEND_OP_ADD;
}
return colorBlendStates;
}
}*/
VkPipelineDepthStencilStateCreateInfo VulkanRenderPipeline::BuildDepthStencilInfo(const RenderPipelineInfo& pipelineInfo)
{
@@ -92,4 +92,17 @@ namespace Nz
return stencilStates;
}
std::vector<VkPipelineShaderStageCreateInfo> VulkanRenderPipeline::BuildShaderStageInfo(const RenderPipelineInfo& pipelineInfo)
{
std::vector<VkPipelineShaderStageCreateInfo> shaderStageCreateInfos;
for (auto&& stagePtr : pipelineInfo.shaderStages)
{
VkPipelineShaderStageCreateInfo& createInfo = shaderStageCreateInfos.emplace_back();
//createInfo.
}
return shaderStageCreateInfos;
}
}