Index: src/gpu/vk/GrVkUniformBuffer.h |
diff --git a/src/gpu/vk/GrVkUniformBuffer.h b/src/gpu/vk/GrVkUniformBuffer.h |
index a894aec0a60d3860cd4e1d5f388c69db0af10ba4..37ede72979b018c46227056e1373789529f10615 100644 |
--- a/src/gpu/vk/GrVkUniformBuffer.h |
+++ b/src/gpu/vk/GrVkUniformBuffer.h |
@@ -23,8 +23,11 @@ public: |
void unmap(const GrVkGpu* gpu) { |
this->vkUnmap(gpu); |
} |
- bool updateData(const GrVkGpu* gpu, const void* src, size_t srcSizeInBytes) { |
- return this->vkUpdateData(gpu, src, srcSizeInBytes); |
+ // The output variable createdNewBuffer must be set to true if a new VkBuffer is created in |
+ // order to upload the data |
+ bool updateData(const GrVkGpu* gpu, const void* src, size_t srcSizeInBytes, |
+ bool* createdNewBuffer) { |
+ return this->vkUpdateData(gpu, src, srcSizeInBytes, createdNewBuffer); |
} |
void release(const GrVkGpu* gpu) { |
this->vkRelease(gpu); |