The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/layer_renderer: Enable blending.

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
066009c0 d0539161

+10 -2
+10 -2
src/xrt/compositor/main/comp_layer_renderer.c
··· 216 216 }, 217 217 .blend_attachments = 218 218 &(VkPipelineColorBlendAttachmentState){ 219 - .blendEnable = VK_FALSE, 220 - .colorWriteMask = 0xf, 219 + .blendEnable = VK_TRUE, 220 + .colorWriteMask = 221 + VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | 222 + VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT, 223 + .srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA, 224 + .dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA, 225 + .colorBlendOp = VK_BLEND_OP_ADD, 226 + .srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA, 227 + .dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO, 228 + .alphaBlendOp = VK_BLEND_OP_ADD, 221 229 }, 222 230 .rasterization_state = 223 231 &(VkPipelineRasterizationStateCreateInfo){