OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef GrVkCopyPipeline_DEFINED |
| 9 #define GrVkCopyPipeline_DEFINED |
| 10 |
| 11 #include "GrVkPipeline.h" |
| 12 |
| 13 class GrVkCopyPipeline : public GrVkPipeline { |
| 14 public: |
| 15 static GrVkCopyPipeline* Create(GrVkGpu* gpu, |
| 16 VkPipelineShaderStageCreateInfo* shaderStage
Info, |
| 17 VkPipelineLayout pipelineLayout, |
| 18 int numSamples, |
| 19 const GrVkRenderPass& renderPass, |
| 20 VkPipelineCache cache); |
| 21 |
| 22 bool isCompatible(const GrVkRenderPass& rp) const; |
| 23 |
| 24 #ifdef SK_TRACE_VK_RESOURCES |
| 25 void dumpInfo() const override { |
| 26 SkDebugf("GrVkCopyPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt(
)); |
| 27 } |
| 28 #endif |
| 29 |
| 30 private: |
| 31 GrVkCopyPipeline(VkPipeline pipeline, const GrVkRenderPass* renderPass) |
| 32 : INHERITED(pipeline) |
| 33 , fRenderPass(renderPass) { |
| 34 } |
| 35 |
| 36 const GrVkRenderPass* fRenderPass; |
| 37 |
| 38 typedef GrVkPipeline INHERITED; |
| 39 }; |
| 40 |
| 41 #endif |
OLD | NEW |