mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 04:34:39 +00:00
Add font LCD sub-pixel anti-aliasing support.
This commit is contained in:
parent
230225d360
commit
bcc3643989
49 changed files with 933 additions and 303 deletions
|
|
@ -7543,6 +7543,16 @@ RenderingDeviceVulkan::DrawList *RenderingDeviceVulkan::_get_draw_list_ptr(DrawL
|
|||
}
|
||||
}
|
||||
|
||||
void RenderingDeviceVulkan::draw_list_set_blend_constants(DrawListID p_list, const Color &p_color) {
|
||||
DrawList *dl = _get_draw_list_ptr(p_list);
|
||||
ERR_FAIL_COND(!dl);
|
||||
#ifdef DEBUG_ENABLED
|
||||
ERR_FAIL_COND_MSG(!dl->validation.active, "Submitted Draw Lists can no longer be modified.");
|
||||
#endif
|
||||
|
||||
vkCmdSetBlendConstants(dl->command_buffer, p_color.components);
|
||||
}
|
||||
|
||||
void RenderingDeviceVulkan::draw_list_bind_render_pipeline(DrawListID p_list, RID p_render_pipeline) {
|
||||
DrawList *dl = _get_draw_list_ptr(p_list);
|
||||
ERR_FAIL_COND(!dl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue