|
|
@ -1032,6 +1032,7 @@ VkResult draw_frame(RenderContext* context, UIContext* ui_context, UILayer* ui_l
|
|
|
|
for(uint32_t i = 0; i < ui_layer_count; i ++) {
|
|
|
|
for(uint32_t i = 0; i < ui_layer_count; i ++) {
|
|
|
|
if(ui_layers[i].text_count > 0) {
|
|
|
|
if(ui_layers[i].text_count > 0) {
|
|
|
|
vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, ui_context->ui_compute_text.layout, 0, 1, &ui_layers[i].font.set, 0, NULL);
|
|
|
|
vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_COMPUTE, ui_context->ui_compute_text.layout, 0, 1, &ui_layers[i].font.set, 0, NULL);
|
|
|
|
|
|
|
|
vkCmdPushConstants(command_buffer, ui_context->ui_pipeline_text.layout, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_COMPUTE_BIT, 0, 8, &ui_layers[i].texts_address);
|
|
|
|
vkCmdDispatch(command_buffer, 1, 1, 1);
|
|
|
|
vkCmdDispatch(command_buffer, 1, 1, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|