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 |
11 #include "GrVkGpu.h" | 11 #include "GrVkGpu.h" |
12 #include "GrVkResource.h" | 12 #include "GrVkResource.h" |
13 #include "GrVkUtil.h" | 13 #include "GrVkUtil.h" |
14 #include "vulkan/vulkan.h" | 14 #include "vk/GrVkDefines.h" |
15 | 15 |
16 class GrVkPipeline; | 16 class GrVkPipeline; |
17 class GrVkRenderPass; | 17 class GrVkRenderPass; |
18 class GrVkRenderTarget; | 18 class GrVkRenderTarget; |
19 class GrVkTransferBuffer; | 19 class GrVkTransferBuffer; |
20 | 20 |
21 class GrVkCommandBuffer : public GrVkResource { | 21 class GrVkCommandBuffer : public GrVkResource { |
22 public: | 22 public: |
23 static GrVkCommandBuffer* Create(const GrVkGpu* gpu, VkCommandPool cmdPool); | 23 static GrVkCommandBuffer* Create(const GrVkGpu* gpu, VkCommandPool cmdPool); |
24 ~GrVkCommandBuffer() override; | 24 ~GrVkCommandBuffer() override; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 // Cached values used for dynamic state updates | 208 // Cached values used for dynamic state updates |
209 VkViewport fCachedViewport; | 209 VkViewport fCachedViewport; |
210 VkRect2D fCachedScissor; | 210 VkRect2D fCachedScissor; |
211 float fCachedBlendConstant[4]; | 211 float fCachedBlendConstant[4]; |
212 }; | 212 }; |
213 | 213 |
214 | 214 |
215 #endif | 215 #endif |
216 | 216 |
OLD | NEW |