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 #include "vk/GrVkPipelineStateBuilder.h" | 8 #include "vk/GrVkPipelineStateBuilder.h" |
9 | 9 |
10 #include "vk/GrVkDescriptorSetManager.h" | 10 #include "vk/GrVkDescriptorSetManager.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 builder.cleanupFragmentProcessors(); | 32 builder.cleanupFragmentProcessors(); |
33 return nullptr; | 33 return nullptr; |
34 } | 34 } |
35 | 35 |
36 return builder.finalize(primitiveType, renderPass, desc); | 36 return builder.finalize(primitiveType, renderPass, desc); |
37 } | 37 } |
38 | 38 |
39 GrVkPipelineStateBuilder::GrVkPipelineStateBuilder(GrVkGpu* gpu, | 39 GrVkPipelineStateBuilder::GrVkPipelineStateBuilder(GrVkGpu* gpu, |
40 const GrPipeline& pipeline, | 40 const GrPipeline& pipeline, |
41 const GrPrimitiveProcessor& p
rimProc, | 41 const GrPrimitiveProcessor& p
rimProc, |
42 const GrGLSLProgramDesc& desc
) | 42 const GrProgramDesc& desc) |
43 : INHERITED(pipeline, primProc, desc) | 43 : INHERITED(pipeline, primProc, desc) |
44 , fGpu(gpu) | 44 , fGpu(gpu) |
45 , fVaryingHandler(this) | 45 , fVaryingHandler(this) |
46 , fUniformHandler(this) { | 46 , fUniformHandler(this) { |
47 } | 47 } |
48 | 48 |
49 const GrCaps* GrVkPipelineStateBuilder::caps() const { | 49 const GrCaps* GrVkPipelineStateBuilder::caps() const { |
50 return fGpu->caps(); | 50 return fGpu->caps(); |
51 } | 51 } |
52 const GrGLSLCaps* GrVkPipelineStateBuilder::glslCaps() const { | 52 const GrGLSLCaps* GrVkPipelineStateBuilder::glslCaps() const { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 fUniformHandles, | 259 fUniformHandles, |
260 fUniformHandler.fUniforms, | 260 fUniformHandler.fUniforms, |
261 fUniformHandler.fCurrentVertexUBOOffset, | 261 fUniformHandler.fCurrentVertexUBOOffset, |
262 fUniformHandler.fCurrentFragmentUBOOffset, | 262 fUniformHandler.fCurrentFragmentUBOOffset, |
263 (uint32_t)fUniformHandler.numSamplers(), | 263 (uint32_t)fUniformHandler.numSamplers(), |
264 fGeometryProcessor, | 264 fGeometryProcessor, |
265 fXferProcessor, | 265 fXferProcessor, |
266 fFragmentProcessors); | 266 fFragmentProcessors); |
267 } | 267 } |
268 | 268 |
OLD | NEW |