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;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buf->size = size;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ typedef struct FFVkBuffer {
|
|||||||
VkBuffer buf;
|
VkBuffer buf;
|
||||||
VkDeviceMemory mem;
|
VkDeviceMemory mem;
|
||||||
VkMemoryPropertyFlagBits flags;
|
VkMemoryPropertyFlagBits flags;
|
||||||
|
size_t size;
|
||||||
} FFVkBuffer;
|
} FFVkBuffer;
|
||||||
|
|
||||||
typedef struct FFVkQueueFamilyCtx {
|
typedef struct FFVkQueueFamilyCtx {
|
||||||
|
|||||||
Reference in New Issue
Block a user