OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrGLSLProgramBuilder_DEFINED | 8 #ifndef GrGLSLProgramBuilder_DEFINED |
9 #define GrGLSLProgramBuilder_DEFINED | 9 #define GrGLSLProgramBuilder_DEFINED |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 GrGLSLExpr4* outputColor, | 124 GrGLSLExpr4* outputColor, |
125 GrGLSLExpr4* outputCoverage); | 125 GrGLSLExpr4* outputCoverage); |
126 void emitAndInstallFragProcs(int procOffset, int numProcs, GrGLSLExpr4* inOu
t); | 126 void emitAndInstallFragProcs(int procOffset, int numProcs, GrGLSLExpr4* inOu
t); |
127 void emitAndInstallFragProc(const GrFragmentProcessor&, | 127 void emitAndInstallFragProc(const GrFragmentProcessor&, |
128 int index, | 128 int index, |
129 const GrGLSLExpr4& input, | 129 const GrGLSLExpr4& input, |
130 GrGLSLExpr4* output); | 130 GrGLSLExpr4* output); |
131 void emitAndInstallXferProc(const GrXferProcessor&, | 131 void emitAndInstallXferProc(const GrXferProcessor&, |
132 const GrGLSLExpr4& colorIn, | 132 const GrGLSLExpr4& colorIn, |
133 const GrGLSLExpr4& coverageIn, | 133 const GrGLSLExpr4& coverageIn, |
134 bool ignoresCoverage); | 134 bool ignoresCoverage, |
| 135 GrPixelLocalStorageState plsState); |
135 void emitFSOutputSwizzle(bool hasSecondaryOutput); | 136 void emitFSOutputSwizzle(bool hasSecondaryOutput); |
136 | 137 |
137 void verify(const GrPrimitiveProcessor&); | 138 void verify(const GrPrimitiveProcessor&); |
138 void verify(const GrXferProcessor&); | 139 void verify(const GrXferProcessor&); |
139 void verify(const GrFragmentProcessor&); | 140 void verify(const GrFragmentProcessor&); |
140 | 141 |
141 virtual void emitSamplers(const GrProcessor& processor, | 142 virtual void emitSamplers(const GrProcessor& processor, |
142 GrGLSLTextureSampler::TextureSamplerArray* outSamp
lers) = 0; | 143 GrGLSLTextureSampler::TextureSamplerArray* outSamp
lers) = 0; |
143 | 144 |
144 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; | 145 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; |
145 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; | 146 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
146 }; | 147 }; |
147 | 148 |
148 #endif | 149 #endif |
OLD | NEW |