mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-22 06:47:12 -04:00
Merge branch 'new-renderpass-clears' into 'master'
render/vulkan: Defer to renderpass clears when possible See merge request wlroots/wlroots!3340
This commit is contained in:
commit
9494eda286
2 changed files with 76 additions and 30 deletions
|
|
@ -120,7 +120,8 @@ void vulkan_format_props_finish(struct wlr_vk_format_props *props);
|
|||
struct wlr_vk_render_format_setup {
|
||||
struct wl_list link;
|
||||
VkFormat render_format; // used in renderpass
|
||||
VkRenderPass render_pass;
|
||||
VkRenderPass render_pass_load;
|
||||
VkRenderPass render_pass_clear;
|
||||
|
||||
VkPipeline tex_pipe;
|
||||
VkPipeline quad_pipe;
|
||||
|
|
@ -184,6 +185,10 @@ struct wlr_vk_renderer {
|
|||
|
||||
struct wl_list render_buffers; // wlr_vk_render_buffer
|
||||
|
||||
bool in_render_pass;
|
||||
bool pending_render_pass_clear;
|
||||
VkClearValue render_pass_clear_color;
|
||||
|
||||
struct {
|
||||
VkCommandBuffer cb;
|
||||
bool recording;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue