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); | |
136 void emitFSOutputSwizzle(bool hasSecondaryOutput); | 135 void emitFSOutputSwizzle(bool hasSecondaryOutput); |
137 | 136 |
138 void verify(const GrPrimitiveProcessor&); | 137 void verify(const GrPrimitiveProcessor&); |
139 void verify(const GrXferProcessor&); | 138 void verify(const GrXferProcessor&); |
140 void verify(const GrFragmentProcessor&); | 139 void verify(const GrFragmentProcessor&); |
141 | 140 |
142 virtual void emitSamplers(const GrProcessor& processor, | 141 virtual void emitSamplers(const GrProcessor& processor, |
143 GrGLSLTextureSampler::TextureSamplerArray* outSamp
lers) = 0; | 142 GrGLSLTextureSampler::TextureSamplerArray* outSamp
lers) = 0; |
144 | 143 |
145 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; | 144 GrGLSLPrimitiveProcessor::TransformsIn fCoordTransforms; |
146 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; | 145 GrGLSLPrimitiveProcessor::TransformsOut fOutCoords; |
147 }; | 146 }; |
148 | 147 |
149 #endif | 148 #endif |
OLD | NEW |