From 6186cc79e6b95a52f5d2ec6075416cbc58c7539f Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 18 Aug 2017 02:03:50 +0200 Subject: vo_gpu: allow invalidating FBO in renderpass_run This is especially interesting for vulkan since it allows completely skipping the layout transition as part of the renderpass. Unfortunately, that also means it needs to be put into renderpass_params, as opposed to renderpass_run_params (unlike #4777). Closes #4777. --- video/out/gpu/ra.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/gpu') diff --git a/video/out/gpu/ra.h b/video/out/gpu/ra.h index 934e5db844..ffb010960a 100644 --- a/video/out/gpu/ra.h +++ b/video/out/gpu/ra.h @@ -285,6 +285,9 @@ struct ra_renderpass_params { enum ra_blend blend_src_alpha; enum ra_blend blend_dst_alpha; + // If true, the contents of `target` not written to will become undefined + bool invalidate_target; + // --- type==RA_RENDERPASS_TYPE_COMPUTE only // Shader text, like vertex_shader/frag_shader. -- cgit v1.2.3