A lot of fixes

This commit is contained in:
Jérôme Leclercq
2021-05-28 22:58:40 +02:00
parent ff505e9019
commit c2b61b6732
6 changed files with 21 additions and 11 deletions

View File

@@ -53,7 +53,10 @@ namespace Nz
VkPipelineColorBlendAttachmentState& colorBlendState = colorBlendStates.emplace_back();
colorBlendState.blendEnable = pipelineInfo.blending;
colorBlendState.colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT; //< TODO
if (pipelineInfo.colorWrite)
colorBlendState.colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT; //< TODO
else
colorBlendState.colorWriteMask = 0;
if (pipelineInfo.blending)
{