Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/gpu/vk/GrVkCommandBuffer.h

Issue 1852413002: Implement blit image for copySurface in Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/vk/GrVkCommandBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrVkCommandBuffer_DEFINED 8 #ifndef GrVkCommandBuffer_DEFINED
9 #define GrVkCommandBuffer_DEFINED 9 #define GrVkCommandBuffer_DEFINED
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const VkImageSubresourceRange* subRanges); 117 const VkImageSubresourceRange* subRanges);
118 118
119 void copyImage(const GrVkGpu* gpu, 119 void copyImage(const GrVkGpu* gpu,
120 GrVkImage* srcImage, 120 GrVkImage* srcImage,
121 VkImageLayout srcLayout, 121 VkImageLayout srcLayout,
122 GrVkImage* dstImage, 122 GrVkImage* dstImage,
123 VkImageLayout dstLayout, 123 VkImageLayout dstLayout,
124 uint32_t copyRegionCount, 124 uint32_t copyRegionCount,
125 const VkImageCopy* copyRegions); 125 const VkImageCopy* copyRegions);
126 126
127 void blitImage(const GrVkGpu* gpu,
128 GrVkImage* srcImage,
129 VkImageLayout srcLayout,
130 GrVkImage* dstImage,
131 VkImageLayout dstLayout,
132 uint32_t blitRegionCount,
133 const VkImageBlit* blitRegions,
134 VkFilter filter);
135
127 void copyImageToBuffer(const GrVkGpu* gpu, 136 void copyImageToBuffer(const GrVkGpu* gpu,
128 GrVkImage* srcImage, 137 GrVkImage* srcImage,
129 VkImageLayout srcLayout, 138 VkImageLayout srcLayout,
130 GrVkTransferBuffer* dstBuffer, 139 GrVkTransferBuffer* dstBuffer,
131 uint32_t copyRegionCount, 140 uint32_t copyRegionCount,
132 const VkBufferImageCopy* copyRegions); 141 const VkBufferImageCopy* copyRegions);
133 142
134 void copyBufferToImage(const GrVkGpu* gpu, 143 void copyBufferToImage(const GrVkGpu* gpu,
135 GrVkTransferBuffer* srcBuffer, 144 GrVkTransferBuffer* srcBuffer,
136 GrVkImage* dstImage, 145 GrVkImage* dstImage,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const GrVkRenderPass* fActiveRenderPass; 215 const GrVkRenderPass* fActiveRenderPass;
207 216
208 // Cached values used for dynamic state updates 217 // Cached values used for dynamic state updates
209 VkViewport fCachedViewport; 218 VkViewport fCachedViewport;
210 VkRect2D fCachedScissor; 219 VkRect2D fCachedScissor;
211 float fCachedBlendConstant[4]; 220 float fCachedBlendConstant[4];
212 }; 221 };
213 222
214 223
215 #endif 224 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/vk/GrVkCommandBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698