vulkan: add size tracking to buffer structs

This commit is contained in:
Lynne 2022-12-16 01:47:42 +01:00
parent b18e20a4ee
commit bf69a64135
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
2 changed files with 3 additions and 0 deletions

View File

@ -295,6 +295,8 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
return AVERROR_EXTERNAL;
}
buf->size = size;
return 0;
}

View File

@ -94,6 +94,7 @@ typedef struct FFVkBuffer {
VkBuffer buf;
VkDeviceMemory mem;
VkMemoryPropertyFlagBits flags;
size_t size;
} FFVkBuffer;
typedef struct FFVkQueueFamilyCtx {