Chromium Code Reviews| Index: src/gpu/vk/GrVkCommandBuffer.cpp |
| diff --git a/src/gpu/vk/GrVkCommandBuffer.cpp b/src/gpu/vk/GrVkCommandBuffer.cpp |
| index 41a7bb51d7dce31d52782c40f341aea32fcf3f11..bc6272c0c632d2385b31e8e4d864704382db66b8 100644 |
| --- a/src/gpu/vk/GrVkCommandBuffer.cpp |
| +++ b/src/gpu/vk/GrVkCommandBuffer.cpp |
| @@ -190,6 +190,32 @@ void GrVkCommandBuffer::bindDescriptorSets(const GrVkGpu* gpu, |
| pipelineState->addUniformResources(*this); |
| } |
| +void GrVkCommandBuffer::bindDescriptorSets(const GrVkGpu* gpu, |
|
jvanverth1
2016/09/26 17:26:11
Just making sure -- is there any way the descripto
egdaniel
2016/09/26 21:12:39
Just in the same way the descriptor sets we bind i
|
| + const SkTArray<const GrVkRecycledResource*>& recycled, |
| + const SkTArray<const GrVkResource*>& resources, |
| + VkPipelineLayout layout, |
| + uint32_t firstSet, |
| + uint32_t setCount, |
| + const VkDescriptorSet* descriptorSets, |
| + uint32_t dynamicOffsetCount, |
| + const uint32_t* dynamicOffsets) { |
| + SkASSERT(fIsActive); |
| + GR_VK_CALL(gpu->vkInterface(), CmdBindDescriptorSets(fCmdBuffer, |
| + VK_PIPELINE_BIND_POINT_GRAPHICS, |
| + layout, |
| + firstSet, |
| + setCount, |
| + descriptorSets, |
| + dynamicOffsetCount, |
| + dynamicOffsets)); |
| + for (int i = 0; i < recycled.count(); ++i) { |
| + this->addRecycledResource(recycled[i]); |
| + } |
| + for (int i = 0; i < resources.count(); ++i) { |
| + this->addResource(resources[i]); |
| + } |
| +} |
| + |
| void GrVkCommandBuffer::bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pipeline) { |
| SkASSERT(fIsActive); |
| GR_VK_CALL(gpu->vkInterface(), CmdBindPipeline(fCmdBuffer, |