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/GrVkGpu.h" | 10 #include "vk/GrVkGpu.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 return nullptr; | 29 return nullptr; |
30 } | 30 } |
31 | 31 |
32 return builder.finalize(primitiveType, renderPass, desc); | 32 return builder.finalize(primitiveType, renderPass, desc); |
33 } | 33 } |
34 | 34 |
35 GrVkPipelineStateBuilder::GrVkPipelineStateBuilder(GrVkGpu* gpu, | 35 GrVkPipelineStateBuilder::GrVkPipelineStateBuilder(GrVkGpu* gpu, |
36 const GrPipeline& pipeline, | 36 const GrPipeline& pipeline, |
37 const GrPrimitiveProcessor& p
rimProc, | 37 const GrPrimitiveProcessor& p
rimProc, |
38 const GrVkProgramDesc& desc) | 38 const GrVkProgramDesc& desc) |
39 : INHERITED(pipeline, primProc, desc) | 39 : INHERITED(pipeline, primProc, desc) |
40 , fGpu(gpu) | 40 , fGpu(gpu) |
41 , fVaryingHandler(this) | 41 , fVaryingHandler(this) |
42 , fUniformHandler(this) { | 42 , fUniformHandler(this) { |
43 } | 43 } |
44 | 44 |
45 const GrCaps* GrVkPipelineStateBuilder::caps() const { | 45 const GrCaps* GrVkPipelineStateBuilder::caps() const { |
46 return fGpu->caps(); | 46 return fGpu->caps(); |
47 } | 47 } |
48 const GrGLSLCaps* GrVkPipelineStateBuilder::glslCaps() const { | 48 const GrGLSLCaps* GrVkPipelineStateBuilder::glslCaps() const { |
49 return fGpu->vkCaps().glslCaps(); | 49 return fGpu->vkCaps().glslCaps(); |
50 } | 50 } |
51 | 51 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 dsLayout, | 291 dsLayout, |
292 fUniformHandles, | 292 fUniformHandles, |
293 fUniformHandler.fUniforms, | 293 fUniformHandler.fUniforms, |
294 fUniformHandler.fCurrentVertexUBOOffset, | 294 fUniformHandler.fCurrentVertexUBOOffset, |
295 fUniformHandler.fCurrentFragmentUBOOffset, | 295 fUniformHandler.fCurrentFragmentUBOOffset, |
296 numSamplers, | 296 numSamplers, |
297 fGeometryProcessor, | 297 fGeometryProcessor, |
298 fXferProcessor, | 298 fXferProcessor, |
299 fFragmentProcessors); | 299 fFragmentProcessors); |
300 } | 300 } |
OLD | NEW |