OLD | NEW |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 void copyImage(const GrVkGpu* gpu, | 121 void copyImage(const GrVkGpu* gpu, |
122 GrVkImage* srcImage, | 122 GrVkImage* srcImage, |
123 VkImageLayout srcLayout, | 123 VkImageLayout srcLayout, |
124 GrVkImage* dstImage, | 124 GrVkImage* dstImage, |
125 VkImageLayout dstLayout, | 125 VkImageLayout dstLayout, |
126 uint32_t copyRegionCount, | 126 uint32_t copyRegionCount, |
127 const VkImageCopy* copyRegions); | 127 const VkImageCopy* copyRegions); |
128 | 128 |
129 void blitImage(const GrVkGpu* gpu, | 129 void blitImage(const GrVkGpu* gpu, |
130 GrVkImage* srcImage, | 130 const GrVkImage::Resource* srcImage, |
131 VkImageLayout srcLayout, | 131 VkImageLayout srcLayout, |
132 GrVkImage* dstImage, | 132 const GrVkImage::Resource* dstImage, |
133 VkImageLayout dstLayout, | 133 VkImageLayout dstLayout, |
134 uint32_t blitRegionCount, | 134 uint32_t blitRegionCount, |
135 const VkImageBlit* blitRegions, | 135 const VkImageBlit* blitRegions, |
136 VkFilter filter); | 136 VkFilter filter); |
137 | 137 |
138 void copyImageToBuffer(const GrVkGpu* gpu, | 138 void copyImageToBuffer(const GrVkGpu* gpu, |
139 GrVkImage* srcImage, | 139 GrVkImage* srcImage, |
140 VkImageLayout srcLayout, | 140 VkImageLayout srcLayout, |
141 GrVkTransferBuffer* dstBuffer, | 141 GrVkTransferBuffer* dstBuffer, |
142 uint32_t copyRegionCount, | 142 uint32_t copyRegionCount, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const GrVkRenderPass* fActiveRenderPass; | 214 const GrVkRenderPass* fActiveRenderPass; |
215 | 215 |
216 // Cached values used for dynamic state updates | 216 // Cached values used for dynamic state updates |
217 VkViewport fCachedViewport; | 217 VkViewport fCachedViewport; |
218 VkRect2D fCachedScissor; | 218 VkRect2D fCachedScissor; |
219 float fCachedBlendConstant[4]; | 219 float fCachedBlendConstant[4]; |
220 }; | 220 }; |
221 | 221 |
222 | 222 |
223 #endif | 223 #endif |
OLD | NEW |