mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
vo_gpu: add rgba16hf to the list of FBO formats
This should be functionally identical to rgba16f, since the formats only differ in their representation on the CPU, but it could be useful for RA backends that don't expose rgba16f, like Vulkan. It's definitely useful for the WIP D3D11 backend.
This commit is contained in:
parent
872c2403a4
commit
d9e3bad500
@ -4707,9 +4707,9 @@ The following video options are currently all specific to ``--vo=gpu`` and
|
||||
Selects the internal format of textures used for FBOs. The format can
|
||||
influence performance and quality of the video output. ``fmt`` can be one
|
||||
of: rgb8, rgb10, rgb10_a2, rgb16, rgb16f, rgb32f, rgba12, rgba16, rgba16f,
|
||||
rgba32f. Default: ``auto``, which maps to rgba16 on desktop GL, and rgba16f
|
||||
or rgb10_a2 on GLES (e.g. ANGLE), unless GL_EXT_texture_norm16 is
|
||||
available.
|
||||
rgba16hf, rgba32f. Default: ``auto``, which maps to rgba16 on desktop GL,
|
||||
and rgba16f or rgb10_a2 on GLES (e.g. ANGLE), unless GL_EXT_texture_norm16
|
||||
is available.
|
||||
|
||||
``--gamma-factor=<0.1..2.0>``
|
||||
Set an additional raw gamma factor (default: 1.0). If gamma is adjusted in
|
||||
|
@ -3364,7 +3364,8 @@ static void check_gl_features(struct gl_video *p)
|
||||
bool have_compute = ra->caps & RA_CAP_COMPUTE;
|
||||
bool have_ssbo = ra->caps & RA_CAP_BUF_RW;
|
||||
|
||||
const char *auto_fbo_fmts[] = {"rgba16", "rgba16f", "rgb10_a2", "rgba8", 0};
|
||||
const char *auto_fbo_fmts[] = {"rgba16", "rgba16f", "rgba16hf",
|
||||
"rgb10_a2", "rgba8", 0};
|
||||
const char *user_fbo_fmts[] = {p->opts.fbo_format, 0};
|
||||
const char **fbo_fmts = user_fbo_fmts[0] && strcmp(user_fbo_fmts[0], "auto")
|
||||
? user_fbo_fmts : auto_fbo_fmts;
|
||||
|
Loading…
Reference in New Issue
Block a user