|
|
|
@ -181,7 +181,7 @@ VkResult create_ui_pipeline(
|
|
|
|
|
.pMultisampleState = &multisample_info,
|
|
|
|
|
.layout = pipeline->layout,
|
|
|
|
|
.renderPass = render_pass,
|
|
|
|
|
.subpass = 0,
|
|
|
|
|
.subpass = 1,
|
|
|
|
|
.basePipelineHandle = VK_NULL_HANDLE,
|
|
|
|
|
.basePipelineIndex = -1,
|
|
|
|
|
};
|
|
|
|
@ -304,10 +304,14 @@ VkResult create_ui_text_pipeline(VkDevice device, VkRenderPass render_pass, VkDe
|
|
|
|
|
.size = 8,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
VkDescriptorSetLayout compute_descriptors[] = {font_layout};
|
|
|
|
|
|
|
|
|
|
VkPipelineLayoutCreateInfo compute_layout_info = {
|
|
|
|
|
.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
|
|
|
|
|
.pushConstantRangeCount = 1,
|
|
|
|
|
.pPushConstantRanges = &push_constant,
|
|
|
|
|
.setLayoutCount = sizeof(compute_descriptors)/sizeof(VkDescriptorSetLayout),
|
|
|
|
|
.pSetLayouts = compute_descriptors,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
result = vkCreatePipelineLayout(device, &compute_layout_info, NULL, &compute->layout);
|
|
|
|
|