mirror of https://git.ffmpeg.org/ffmpeg.git
vulkan: add size tracking to buffer structs
This commit is contained in:
parent
b18e20a4ee
commit
bf69a64135
|
@ -295,6 +295,8 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
|
|||
return AVERROR_EXTERNAL;
|
||||
}
|
||||
|
||||
buf->size = size;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ typedef struct FFVkBuffer {
|
|||
VkBuffer buf;
|
||||
VkDeviceMemory mem;
|
||||
VkMemoryPropertyFlagBits flags;
|
||||
size_t size;
|
||||
} FFVkBuffer;
|
||||
|
||||
typedef struct FFVkQueueFamilyCtx {
|
||||
|
|
Loading…
Reference in New Issue