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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 uint32_t dynamicOffsetCount, | 107 uint32_t dynamicOffsetCount, |
108 const uint32_t* dynamicOffsets); | 108 const uint32_t* dynamicOffsets); |
109 | 109 |
110 // Commands that only work outside of a render pass | 110 // Commands that only work outside of a render pass |
111 void clearColorImage(const GrVkGpu* gpu, | 111 void clearColorImage(const GrVkGpu* gpu, |
112 GrVkImage* image, | 112 GrVkImage* image, |
113 const VkClearColorValue* color, | 113 const VkClearColorValue* color, |
114 uint32_t subRangeCount, | 114 uint32_t subRangeCount, |
115 const VkImageSubresourceRange* subRanges); | 115 const VkImageSubresourceRange* subRanges); |
116 | 116 |
| 117 void clearDepthStencilImage(const GrVkGpu* gpu, |
| 118 GrVkImage* image, |
| 119 const VkClearDepthStencilValue* color, |
| 120 uint32_t subRangeCount, |
| 121 const VkImageSubresourceRange* subRanges); |
| 122 |
117 void copyImage(const GrVkGpu* gpu, | 123 void copyImage(const GrVkGpu* gpu, |
118 GrVkImage* srcImage, | 124 GrVkImage* srcImage, |
119 VkImageLayout srcLayout, | 125 VkImageLayout srcLayout, |
120 GrVkImage* dstImage, | 126 GrVkImage* dstImage, |
121 VkImageLayout dstLayout, | 127 VkImageLayout dstLayout, |
122 uint32_t copyRegionCount, | 128 uint32_t copyRegionCount, |
123 const VkImageCopy* copyRegions); | 129 const VkImageCopy* copyRegions); |
124 | 130 |
125 void copyImageToBuffer(const GrVkGpu* gpu, | 131 void copyImageToBuffer(const GrVkGpu* gpu, |
126 GrVkImage* srcImage, | 132 GrVkImage* srcImage, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 203 |
198 // Stores a pointer to the current active render pass (i.e. begin has been c
alled but not end). | 204 // Stores a pointer to the current active render pass (i.e. begin has been c
alled but not end). |
199 // A nullptr means there is no active render pass. The GrVKCommandBuffer doe
s not own the render | 205 // A nullptr means there is no active render pass. The GrVKCommandBuffer doe
s not own the render |
200 // pass. | 206 // pass. |
201 const GrVkRenderPass* fActiveRenderPass; | 207 const GrVkRenderPass* fActiveRenderPass; |
202 }; | 208 }; |
203 | 209 |
204 | 210 |
205 #endif | 211 #endif |
206 | 212 |
OLD | NEW |