aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl/GrGLSLShaderBuilder.h
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2016-04-11 11:30:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-11 11:30:50 -0700
commit1f50acff0dc09e50cc207846508d8e6459334b2a (patch)
tree0d2aa98915e50223a84c771dce0f42b9c2ea04b6 /src/gpu/glsl/GrGLSLShaderBuilder.h
parentfef28606d2c51be627be3a656581882e31945c03 (diff)
Add appendPrecisionModifier method to GrGLSLShaderBuilder
Diffstat (limited to 'src/gpu/glsl/GrGLSLShaderBuilder.h')
-rw-r--r--src/gpu/glsl/GrGLSLShaderBuilder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/glsl/GrGLSLShaderBuilder.h b/src/gpu/glsl/GrGLSLShaderBuilder.h
index 5b3a01f3e9..cddf7b2db4 100644
--- a/src/gpu/glsl/GrGLSLShaderBuilder.h
+++ b/src/gpu/glsl/GrGLSLShaderBuilder.h
@@ -93,6 +93,11 @@ public:
*/
void declAppend(const GrGLSLShaderVar& var);
+ /**
+ * Appends a precision qualifier followed by a space, if relevant for the GLSL version.
+ */
+ void appendPrecisionModifier(GrSLPrecision);
+
/** Emits a helper function outside of main() in the fragment shader. */
void emitFunction(GrSLType returnType,
const char* name,