| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |