Index: src/gpu/vk/GrVkCommandBuffer.cpp |
diff --git a/src/gpu/vk/GrVkCommandBuffer.cpp b/src/gpu/vk/GrVkCommandBuffer.cpp |
index e43c50fc4ac44bdeaeb546002cc86fd6a614f920..d26d06d1c34a2d642b8b7d464e2b0df75eedae09 100644 |
--- a/src/gpu/vk/GrVkCommandBuffer.cpp |
+++ b/src/gpu/vk/GrVkCommandBuffer.cpp |
@@ -104,7 +104,6 @@ void GrVkCommandBuffer::beginRenderPass(const GrVkGpu* gpu, |
fActiveRenderPass = renderPass; |
this->addResource(renderPass); |
target.addResources(*this); |
- |
} |
void GrVkCommandBuffer::endRenderPass(const GrVkGpu* gpu) { |
@@ -295,6 +294,22 @@ void GrVkCommandBuffer::clearColorImage(const GrVkGpu* gpu, |
subRanges)); |
} |
+void GrVkCommandBuffer::clearDepthStencilImage(const GrVkGpu* gpu, |
+ GrVkImage* image, |
+ const VkClearDepthStencilValue* color, |
+ uint32_t subRangeCount, |
+ const VkImageSubresourceRange* subRanges) { |
+ SkASSERT(fIsActive); |
+ SkASSERT(!fActiveRenderPass); |
+ this->addResource(image->resource()); |
+ GR_VK_CALL(gpu->vkInterface(), CmdClearDepthStencilImage(fCmdBuffer, |
+ image->textureImage(), |
+ image->currentLayout(), |
+ color, |
+ subRangeCount, |
+ subRanges)); |
+} |
+ |
void GrVkCommandBuffer::clearAttachments(const GrVkGpu* gpu, |
int numAttachments, |
const VkClearAttachment* attachments, |