mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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…
x
Reference in New Issue
Block a user