Index: src/gpu/gl/GrGLShaderBuilder.h |
=================================================================== |
--- src/gpu/gl/GrGLShaderBuilder.h (revision 7952) |
+++ src/gpu/gl/GrGLShaderBuilder.h (working copy) |
@@ -146,7 +146,10 @@ |
return this->getUniformVariable(u).c_str(); |
} |
- /** Add a varying variable to the current program to pass values between vertex and fragment |
+ /** Add a vertex attribute to the current program that is passed in from the vertex data */ |
+ void addAttribute(GrSLType type, const char* name); |
+ |
+ /** Add a varying variable to the current program to pass values between vertex and fragment |
shaders. If the last two parameters are non-NULL, they are filled in with the name |
generated. */ |
void addVarying(GrSLType type, |