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 GrVkRenderPass_DEFINED | 8 #ifndef GrVkRenderPass_DEFINED |
9 #define GrVkRenderPass_DEFINED | 9 #define GrVkRenderPass_DEFINED |
10 | 10 |
11 #include "GrTypes.h" | 11 #include "GrTypes.h" |
12 | 12 |
13 #include "GrVkResource.h" | 13 #include "GrVkResource.h" |
14 | 14 |
15 #include "vulkan/vulkan.h" | 15 #include "vk/GrVkDefines.h" |
16 | 16 |
17 class GrProcessorKeyBuilder; | 17 class GrProcessorKeyBuilder; |
18 class GrVkGpu; | 18 class GrVkGpu; |
19 class GrVkRenderTarget; | 19 class GrVkRenderTarget; |
20 | 20 |
21 class GrVkRenderPass : public GrVkResource { | 21 class GrVkRenderPass : public GrVkResource { |
22 public: | 22 public: |
23 GrVkRenderPass() : INHERITED(), fRenderPass(VK_NULL_HANDLE) {} | 23 GrVkRenderPass() : INHERITED(), fRenderPass(VK_NULL_HANDLE) {} |
24 void initSimple(const GrVkGpu* gpu, const GrVkRenderTarget& target); | 24 void initSimple(const GrVkGpu* gpu, const GrVkRenderTarget& target); |
25 | 25 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 VkRenderPass fRenderPass; | 84 VkRenderPass fRenderPass; |
85 AttachmentFlags fAttachmentFlags; | 85 AttachmentFlags fAttachmentFlags; |
86 AttachmentsDescriptor fAttachmentsDescriptor; | 86 AttachmentsDescriptor fAttachmentsDescriptor; |
87 | 87 |
88 typedef GrVkResource INHERITED; | 88 typedef GrVkResource INHERITED; |
89 }; | 89 }; |
90 | 90 |
91 GR_MAKE_BITFIELD_OPS(GrVkRenderPass::AttachmentFlags); | 91 GR_MAKE_BITFIELD_OPS(GrVkRenderPass::AttachmentFlags); |
92 | 92 |
93 #endif | 93 #endif |
OLD | NEW |