Vulkan: Rename StreamingBuffer to DynamicBuffer.
This makes it consistent with DynamicDescriptorPool, and gives a bit
more precise definition.
Bug: angleproject:2318
Change-Id: I8953113165ebe2d0dcfc0fc923d94280180442ce
Reviewed-on: https://chromium-review.googlesource.com/985199
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Luc Ferron <lucferron@chromium.org>
diff --git a/src/libANGLE/renderer/vulkan/VertexArrayVk.cpp b/src/libANGLE/renderer/vulkan/VertexArrayVk.cpp
index f19ddb8..df7bf21 100644
--- a/src/libANGLE/renderer/vulkan/VertexArrayVk.cpp
+++ b/src/libANGLE/renderer/vulkan/VertexArrayVk.cpp
@@ -50,7 +50,7 @@
}
gl::Error VertexArrayVk::streamVertexData(const gl::Context *context,
- StreamingBuffer *stream,
+ DynamicBuffer *dynamicBuffer,
const gl::DrawCallParams &drawCallParams)
{
ContextVk *contextVk = vk::GetImpl(context);
@@ -86,14 +86,14 @@
lastVertex * binding.getStride() + gl::ComputeVertexAttributeTypeSize(attrib);
uint8_t *dst = nullptr;
uint32_t offset = 0;
- ANGLE_TRY(stream->allocate(contextVk, lastByte, &dst,
- &mCurrentArrayBufferHandles[attribIndex], &offset, nullptr));
+ ANGLE_TRY(dynamicBuffer->allocate(
+ contextVk, lastByte, &dst, &mCurrentArrayBufferHandles[attribIndex], &offset, nullptr));
mCurrentArrayBufferOffsets[attribIndex] = static_cast<VkDeviceSize>(offset);
memcpy(dst + firstByte, static_cast<const uint8_t *>(attrib.pointer) + firstByte,
lastByte - firstByte);
}
- ANGLE_TRY(stream->flush(contextVk));
+ ANGLE_TRY(dynamicBuffer->flush(contextVk));
return gl::NoError();
}