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