Index: src/gpu/vk/GrVkPipelineState.cpp |
diff --git a/src/gpu/vk/GrVkPipelineState.cpp b/src/gpu/vk/GrVkPipelineState.cpp |
index 10a1ac9204acdee19b2377c91b58fc240ff24f7a..94d6305bc951a5eba89a6bc8839d94f7a6e15990 100644 |
--- a/src/gpu/vk/GrVkPipelineState.cpp |
+++ b/src/gpu/vk/GrVkPipelineState.cpp |
@@ -238,7 +238,7 @@ void GrVkPipelineState::writeUniformBuffers(const GrVkGpu* gpu) { |
++uniformBindingUpdateCount; |
memset(&vertBufferInfo, 0, sizeof(VkDescriptorBufferInfo)); |
vertBufferInfo.buffer = fVertexUniformBuffer->buffer(); |
- vertBufferInfo.offset = 0; |
+ vertBufferInfo.offset = fVertexUniformBuffer->offset(); |
vertBufferInfo.range = fVertexUniformBuffer->size(); |
descriptorWrites[0].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; |
@@ -262,7 +262,7 @@ void GrVkPipelineState::writeUniformBuffers(const GrVkGpu* gpu) { |
++uniformBindingUpdateCount; |
memset(&fragBufferInfo, 0, sizeof(VkDescriptorBufferInfo)); |
fragBufferInfo.buffer = fFragmentUniformBuffer->buffer(); |
- fragBufferInfo.offset = 0; |
+ fragBufferInfo.offset = fFragmentUniformBuffer->offset(); |
fragBufferInfo.range = fFragmentUniformBuffer->size(); |
descriptorWrites[1].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; |