Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: include/gpu/GrTypesPriv.h

Issue 1784023002: Add sampler precision to GrTextureAccess (Closed) Base URL: https://skia.googlesource.com/skia.git@upload2_verttex
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/GrTextureAccess.h ('k') | src/gpu/GrTextureAccess.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
+
//////////////////////////////////////////////////////////////////////////////
/**
« no previous file with comments | « include/gpu/GrTextureAccess.h ('k') | src/gpu/GrTextureAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698