OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrVkPipeline_DEFINED | 8 #ifndef GrVkPipeline_DEFINED |
9 #define GrVkPipeline_DEFINED | 9 #define GrVkPipeline_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 "vk/GrVkDefines.h" | 15 #include "vk/GrVkDefines.h" |
16 | 16 |
17 class GrNonInstancedVertices; | 17 class GrNonInstancedVertices; |
18 class GrPipeline; | 18 class GrPipeline; |
19 class GrPrimitiveProcessor; | 19 class GrPrimitiveProcessor; |
| 20 class GrStencilSettings; |
20 class GrVkCommandBuffer; | 21 class GrVkCommandBuffer; |
21 class GrVkGpu; | 22 class GrVkGpu; |
22 class GrVkRenderPass; | 23 class GrVkRenderPass; |
23 | 24 |
24 class GrVkPipeline : public GrVkResource { | 25 class GrVkPipeline : public GrVkResource { |
25 public: | 26 public: |
26 static GrVkPipeline* Create(GrVkGpu* gpu, | 27 static GrVkPipeline* Create(GrVkGpu* gpu, |
27 const GrPipeline& pipeline, | 28 const GrPipeline& pipeline, |
| 29 const GrStencilSettings&, |
28 const GrPrimitiveProcessor& primProc, | 30 const GrPrimitiveProcessor& primProc, |
29 VkPipelineShaderStageCreateInfo* shaderStageInfo
, | 31 VkPipelineShaderStageCreateInfo* shaderStageInfo
, |
30 int shaderStageCount, | 32 int shaderStageCount, |
31 GrPrimitiveType primitiveType, | 33 GrPrimitiveType primitiveType, |
32 const GrVkRenderPass& renderPass, | 34 const GrVkRenderPass& renderPass, |
33 VkPipelineLayout layout, | 35 VkPipelineLayout layout, |
34 VkPipelineCache cache); | 36 VkPipelineCache cache); |
35 | 37 |
36 VkPipeline pipeline() const { return fPipeline; } | 38 VkPipeline pipeline() const { return fPipeline; } |
37 | 39 |
(...skipping 10 matching lines...) Expand all Loading... |
48 | 50 |
49 VkPipeline fPipeline; | 51 VkPipeline fPipeline; |
50 | 52 |
51 private: | 53 private: |
52 void freeGPUData(const GrVkGpu* gpu) const override; | 54 void freeGPUData(const GrVkGpu* gpu) const override; |
53 | 55 |
54 typedef GrVkResource INHERITED; | 56 typedef GrVkResource INHERITED; |
55 }; | 57 }; |
56 | 58 |
57 #endif | 59 #endif |
OLD | NEW |