mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 05:06:31 +00:00
c/layer_renderer: Enable blending.
This commit is contained in:
parent
d0539161dc
commit
066009c0c5
|
@ -216,8 +216,16 @@ _init_graphics_pipeline(struct comp_layer_renderer *self)
|
|||
},
|
||||
.blend_attachments =
|
||||
&(VkPipelineColorBlendAttachmentState){
|
||||
.blendEnable = VK_FALSE,
|
||||
.colorWriteMask = 0xf,
|
||||
.blendEnable = VK_TRUE,
|
||||
.colorWriteMask =
|
||||
VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT |
|
||||
VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT,
|
||||
.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA,
|
||||
.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA,
|
||||
.colorBlendOp = VK_BLEND_OP_ADD,
|
||||
.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA,
|
||||
.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO,
|
||||
.alphaBlendOp = VK_BLEND_OP_ADD,
|
||||
},
|
||||
.rasterization_state =
|
||||
&(VkPipelineRasterizationStateCreateInfo){
|
||||
|
|
Loading…
Reference in a new issue