diff options
author | Niklas Haas <git@haasn.xyz> | 2017-08-21 07:00:25 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-27 14:37:47 +0200 |
commit | cc79d48d2243f2a4f64e4ce7268eee92ee24bd7d (patch) | |
tree | 9886e8fc649747908d89525d42a1f3231a04b38d /video/out/opengl/ra.h | |
parent | 7baa18d5f8a4c663cd20e709c059c44364020f47 (diff) | |
download | mpv-cc79d48d2243f2a4f64e4ce7268eee92ee24bd7d.tar.bz2 mpv-cc79d48d2243f2a4f64e4ce7268eee92ee24bd7d.tar.xz |
vo_opengl: fix the renderpass target format at creation time
Required for vulkan.
Diffstat (limited to 'video/out/opengl/ra.h')
-rw-r--r-- | video/out/opengl/ra.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h index f78eff82c9..0f1f98c6f0 100644 --- a/video/out/opengl/ra.h +++ b/video/out/opengl/ra.h @@ -245,6 +245,9 @@ struct ra_renderpass_params { int num_vertex_attribs; int vertex_stride; + // Format of the target texture + const struct ra_format *target_format; + // Shader text, in GLSL. (Yes, you need a GLSL compiler.) // These are complete shaders, including prelude and declarations. const char *vertex_shader; @@ -302,7 +305,8 @@ struct ra_renderpass_run_params { // --- pass->params.type==RA_RENDERPASS_TYPE_RASTER only - // target->params.render_dst must be true. + // target->params.render_dst must be true, and target->params.format must + // match pass->params.target_format. struct ra_tex *target; struct mp_rect viewport; struct mp_rect scissors; |