| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrGLNvprProgramBuilder_DEFINED | 8 #ifndef GrGLNvprProgramBuilder_DEFINED |
| 9 #define GrGLNvprProgramBuilder_DEFINED | 9 #define GrGLNvprProgramBuilder_DEFINED |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 typedef GrGLInstalledFragProc::ShaderVarHandle ShaderVarHandle; | 35 typedef GrGLInstalledFragProc::ShaderVarHandle ShaderVarHandle; |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * Add a separable varying input variable to the current program. | 38 * Add a separable varying input variable to the current program. |
| 39 * A separable varying (fragment shader input) is a varying that can be used
also when vertex | 39 * A separable varying (fragment shader input) is a varying that can be used
also when vertex |
| 40 * shaders are not used. With a vertex shader, the operation is same as with
other | 40 * shaders are not used. With a vertex shader, the operation is same as with
other |
| 41 * varyings. Without a vertex shader, such as with NV_path_rendering, GL API
s are used to | 41 * varyings. Without a vertex shader, such as with NV_path_rendering, GL API
s are used to |
| 42 * populate the variable. The APIs can refer to the variable through the ret
urned handle. | 42 * populate the variable. The APIs can refer to the variable through the ret
urned handle. |
| 43 */ | 43 */ |
| 44 ShaderVarHandle addSeparableVarying(GrSLType type, | 44 ShaderVarHandle addSeparableVarying(const char* name, GrGLVarying* v); |
| 45 const char* name, | |
| 46 const char** vsOutName, | |
| 47 const char** fsInName); | |
| 48 | 45 |
| 49 void resolveSeparableVaryings(GrGLuint programId); | 46 void resolveSeparableVaryings(GrGLuint programId); |
| 50 | 47 |
| 51 SeparableVaryingInfoArray fSeparableVaryingInfos; | 48 SeparableVaryingInfoArray fSeparableVaryingInfos; |
| 52 | 49 |
| 53 typedef GrGLProgramBuilder INHERITED; | 50 typedef GrGLProgramBuilder INHERITED; |
| 54 }; | 51 }; |
| 55 | 52 |
| 56 #endif | 53 #endif |
| OLD | NEW |