[vulkan] Set a reasonable default for color blend

Vulkan requires color blend state is only for color attachments (ignored
otherwise), but it shouldn't be necessary to actually specify the blend
state and instead have it default to something reasonable.
Unfortunately, colorWriteMask affects the output even if blending is
disabled, so it must be initialized to something reasonable (r|g|b|a)
for when the default is used.
This commit is contained in:
Bill Currie 2023-02-18 17:22:06 +09:00
parent 105bbbc0f2
commit ed74a6420b

View file

@ -441,6 +441,7 @@
.string = {
name = $name;
layout = $auto;
blend = "(VkPipelineColorBlendAttachmentState) { .colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT }"
};
.dictionary = {
.parse = auto;