aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrShaderCaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrShaderCaps.h')
-rw-r--r--include/gpu/GrShaderCaps.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrShaderCaps.h b/include/gpu/GrShaderCaps.h
index 86a2566675..f86e87c461 100644
--- a/include/gpu/GrShaderCaps.h
+++ b/include/gpu/GrShaderCaps.h
@@ -119,6 +119,10 @@ public:
// If true interpolated vertex shader outputs are inaccurate.
bool interpolantsAreInaccurate() const { return fInterpolantsAreInaccurate; }
+ // If true, short ints can't represent every integer in the 16-bit two's complement range as
+ // required by the spec. SKSL will always emit full ints.
+ bool incompleteShortIntPrecision() const { return fIncompleteShortIntPrecision; }
+
bool requiresLocalOutputColorForFBFetch() const { return fRequiresLocalOutputColorForFBFetch; }
bool mustObfuscateUniformColor() const { return fMustObfuscateUniformColor; }
@@ -261,6 +265,7 @@ private:
bool fMustGuardDivisionEvenAfterExplicitZeroCheck : 1;
bool fCanUseFragCoord : 1;
bool fInterpolantsAreInaccurate : 1;
+ bool fIncompleteShortIntPrecision : 1;
const char* fVersionDeclString;