aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-05-10 11:26:40 +0100
committerLynne <dev@lynne.ee>2020-05-10 23:20:47 +0100
commit3c5e5a5095144d72f0ce6387e4ce840f46f454ea (patch)
tree856b0ca4d9c63cd2480f595cebcdc2abc65b2113 /doc
parent6db81e93a95d150ec828214ba7eb6183577c748c (diff)
downloadffmpeg-3c5e5a5095144d72f0ce6387e4ce840f46f454ea.tar.gz
hwcontext_vulkan: let users enable device and instance extensions using options
Also documents all options supported by the hwdevice. This lets users enable all extensions they need without writing their own instance initialization code.
Diffstat (limited to 'doc')
-rw-r--r--doc/ffmpeg.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index 29753f06ca..ed437bb16f 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -1034,6 +1034,18 @@ If @var{device} is an integer, it selects the device by its index in a
system-dependent list of devices. If @var{device} is any other string, it
selects the first device with a name containing that string as a substring.
+The following options are recognized:
+@table @option
+@item debug
+If set to 1, enables the validation layer, if installed.
+@item linear_images
+If set to 1, images allocated by the hwcontext will be linear and locally mappable.
+@item instance_extensions
+A plus separated list of additional instance extensions to enable.
+@item device_extensions
+A plus separated list of additional device extensions to enable.
+@end table
+
Examples:
@table @emph
@item -init_hw_device vulkan:1
@@ -1041,6 +1053,9 @@ Choose the second device on the system.
@item -init_hw_device vulkan:RADV
Choose the first device with a name containing the string @emph{RADV}.
+
+@item -init_hw_device vulkan:0,instance_extensions=VK_KHR_wayland_surface+VK_KHR_xcb_surface
+Choose the first device and enable the Wayland and XCB instance extensions.
@end table
@end table