You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
vulkan: add size tracking to buffer structs
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user