vk: add source alpha saturate blend factor (#2724)

This commit is contained in:
raven02 2017-04-22 22:35:36 +08:00 committed by GitHub
parent 463e18f893
commit 24fc1027ea

View File

@ -221,6 +221,7 @@ namespace vk
case rsx::blend_factor::one_minus_dst_alpha: return VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA; case rsx::blend_factor::one_minus_dst_alpha: return VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA;
case rsx::blend_factor::one_minus_constant_alpha: return VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA; case rsx::blend_factor::one_minus_constant_alpha: return VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA;
case rsx::blend_factor::one_minus_constant_color: return VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR; case rsx::blend_factor::one_minus_constant_color: return VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR;
case rsx::blend_factor::src_alpha_saturate: return VK_BLEND_FACTOR_SRC_ALPHA_SATURATE;
default: default:
fmt::throw_exception("Unknown blend factor 0x%x" HERE, (u32)factor); fmt::throw_exception("Unknown blend factor 0x%x" HERE, (u32)factor);
} }