Index: src/gpu/vk/GrVkImage.h |
diff --git a/src/gpu/vk/GrVkImage.h b/src/gpu/vk/GrVkImage.h |
index 6f848d52e432b5abed9801c1aa783767a9da3987..006c0f1983964d5aa957116500575215cbf4c4ec 100644 |
--- a/src/gpu/vk/GrVkImage.h |
+++ b/src/gpu/vk/GrVkImage.h |
@@ -92,6 +92,19 @@ public: |
VkAccessFlags dstAccessMask, |
VkPipelineStageFlags srcStageMask, |
VkPipelineStageFlags dstStageMask, |
+ bool byRegion) { |
+ this->setImageLayout(gpu, newLayout, srcAccessMask, dstAccessMask, |
+ srcStageMask, dstStageMask, 0, fResource->fLevelCount, byRegion); |
+ } |
+ |
+ void setImageLayout(const GrVkGpu* gpu, |
+ VkImageLayout newLayout, |
+ VkAccessFlags srcAccessMask, |
+ VkAccessFlags dstAccessMask, |
+ VkPipelineStageFlags srcStageMask, |
+ VkPipelineStageFlags dstStageMask, |
+ uint32_t baseMipLevel, |
+ uint32_t levelCount, |
bool byRegion); |
struct ImageDesc { |