Index: include/gpu/GrTypesPriv.h |
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h |
index a0451537720e66c797762e36b434c8fc6a05a8ee..a2facfa6cfc0f2c65d95fda4c96646323e68a202 100644 |
--- a/include/gpu/GrTypesPriv.h |
+++ b/include/gpu/GrTypesPriv.h |
@@ -204,6 +204,10 @@ static inline bool GrSLTypeIsSamplerType(GrSLType type) { |
GR_STATIC_ASSERT(10 == kSampler2DRect_GrSLType); |
} |
+static inline bool GrSLTypeAcceptsPrecision(GrSLType type) { |
+ return GrSLTypeIsNumeric(type) || GrSLTypeIsSamplerType(type); |
+} |
+ |
////////////////////////////////////////////////////////////////////////////// |
/** |