aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-12-19 07:57:22 +0100
committerLynne <dev@lynne.ee>2023-05-29 00:41:46 +0200
commitd386988c39670aadb4fa9d22bc1e0f3be8373b5c (patch)
treeab4d7b81c490ca1e9053290b74dfaef9f7a79b41 /libavutil/vulkan.h
parentbf69a641355771106b4836e0558d5c34e48870b9 (diff)
downloadffmpeg-d386988c39670aadb4fa9d22bc1e0f3be8373b5c.tar.gz
vulkan: use device properties 2 and add a convenience loader function
Diffstat (limited to 'libavutil/vulkan.h')
-rw-r--r--libavutil/vulkan.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index f2c4a79102..2cd2c1f8fa 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -197,7 +197,8 @@ typedef struct FFVulkanContext {
FFVulkanFunctions vkfn;
FFVulkanExtensions extensions;
- VkPhysicalDeviceProperties props;
+ VkPhysicalDeviceProperties2 props;
+ VkPhysicalDeviceDriverProperties driver_props;
VkPhysicalDeviceMemoryProperties mprops;
AVBufferRef *device_ref;
@@ -244,6 +245,11 @@ extern const VkComponentMapping ff_comp_identity_map;
const char *ff_vk_ret2str(VkResult res);
/**
+ * Loads props/mprops/driver_props
+ */
+void ff_vk_load_props(FFVulkanContext *s);
+
+/**
* Returns 1 if the image is any sort of supported RGB
*/
int ff_vk_mt_is_np_rgb(enum AVPixelFormat pix_fmt);