mirror of https://github.com/mpv-player/mpv
vo_opengl: add legend for texture format debug dump
This commit is contained in:
parent
1479c7bd0d
commit
e7d31d12be
|
@ -153,6 +153,7 @@ void ra_dump_tex_formats(struct ra *ra, int msgl)
|
||||||
if (!mp_msg_test(ra->log, msgl))
|
if (!mp_msg_test(ra->log, msgl))
|
||||||
return;
|
return;
|
||||||
MP_MSG(ra, msgl, "Texture formats:\n");
|
MP_MSG(ra, msgl, "Texture formats:\n");
|
||||||
|
MP_MSG(ra, msgl, " NAME COMP*TYPE SIZE DEPTH PER COMP.\n");
|
||||||
for (int n = 0; n < ra->num_formats; n++) {
|
for (int n = 0; n < ra->num_formats; n++) {
|
||||||
const struct ra_format *fmt = ra->formats[n];
|
const struct ra_format *fmt = ra->formats[n];
|
||||||
const char *ctype = "unknown";
|
const char *ctype = "unknown";
|
||||||
|
@ -174,6 +175,9 @@ void ra_dump_tex_formats(struct ra *ra, int msgl)
|
||||||
fmt->linear_filter ? "LF" : " ",
|
fmt->linear_filter ? "LF" : " ",
|
||||||
fmt->renderable ? "CR" : " ", cl);
|
fmt->renderable ? "CR" : " ", cl);
|
||||||
}
|
}
|
||||||
|
MP_MSG(ra, msgl, " LA = LUMINANCE_ALPHA hack format\n");
|
||||||
|
MP_MSG(ra, msgl, " LF = linear filterable\n");
|
||||||
|
MP_MSG(ra, msgl, " CR = can be used for render targets\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ra_dump_imgfmt_desc(struct ra *ra, const struct ra_imgfmt_desc *desc,
|
void ra_dump_imgfmt_desc(struct ra *ra, const struct ra_imgfmt_desc *desc,
|
||||||
|
|
Loading…
Reference in New Issue