summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/context.c
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-04-15 23:18:44 -0400
committerKacper Michajłow <kasper93@gmail.com>2024-04-18 16:28:21 +0200
commit2533ea764f3fd506b619925611b4b8446d999c13 (patch)
tree91e4cea7220e9c8f097224d3a5ad225f296c2c7a /video/out/gpu/context.c
parenta6ff33425dd29fa214ee21c6b32cd283f8a18f64 (diff)
downloadmpv-2533ea764f3fd506b619925611b4b8446d999c13.tar.bz2
mpv-2533ea764f3fd506b619925611b4b8446d999c13.tar.xz
various: add GPU context description
Now that obj_settings_list is used for GPU contexts, detailed descriptions can be added so that --gpu-context=help can print the descriptions of the GPU contexts using standard obj_settings_list help printing.
Diffstat (limited to 'video/out/gpu/context.c')
-rw-r--r--video/out/gpu/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c
index d6c1eaa242..3202729741 100644
--- a/video/out/gpu/context.c
+++ b/video/out/gpu/context.c
@@ -147,6 +147,7 @@ static bool get_desc(struct m_obj_desc *dst, int index)
const struct ra_ctx_fns *ctx = contexts[index];
*dst = (struct m_obj_desc) {
.name = ctx->name,
+ .description = ctx->description,
};
return true;
}