vulkan: use device properties 2 and add a convenience loader function

This commit is contained in:
Lynne 2022-12-19 07:57:22 +01:00
parent bf69a64135
commit d386988c39
No known key found for this signature in database
GPG key ID: A2FEA5F03F034464
2 changed files with 24 additions and 2 deletions

View file

@ -197,7 +197,8 @@ typedef struct FFVulkanContext {
FFVulkanFunctions vkfn;
FFVulkanExtensions extensions;
VkPhysicalDeviceProperties props;
VkPhysicalDeviceProperties2 props;
VkPhysicalDeviceDriverProperties driver_props;
VkPhysicalDeviceMemoryProperties mprops;
AVBufferRef *device_ref;
@ -243,6 +244,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
*/