diff options
author | 2018-03-28 20:09:58 -0600 | |
---|---|---|
committer | 2018-04-02 16:05:05 +0000 | |
commit | 7c7ff031a51901f3064d0ceca93c97111c85292e (patch) | |
tree | 6bd30cdf149ae4a9dc1cafa440d4fa33ccd17ec5 /include | |
parent | 64ecdce4aded98b4b96d5d04ecba3bb08c16bc31 (diff) |
ccpr: Normalize homogeneous coords with frexp/ldexp
Hopefully increases cubic accuracy by manipulating exponents
instead of calling normalize().
Bug: skia:
Change-Id: I8d3596e858a2fbb6650c158753133c5a2e01e166
Reviewed-on: https://skia-review.googlesource.com/117009
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrShaderCaps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrShaderCaps.h b/include/gpu/GrShaderCaps.h index f86e87c461..b6afe3934f 100644 --- a/include/gpu/GrShaderCaps.h +++ b/include/gpu/GrShaderCaps.h @@ -76,6 +76,9 @@ public: bool vertexIDSupport() const { return fVertexIDSupport; } + // frexp, ldexp, etc. + bool fpManipulationSupport() const { return fFPManipulationSupport; } + bool floatIs32Bits() const { return fFloatIs32Bits; } bool halfIs32Bits() const { return fHalfIs32Bits; } @@ -250,6 +253,7 @@ private: bool fExternalTextureSupport : 1; bool fTexelFetchSupport : 1; bool fVertexIDSupport : 1; + bool fFPManipulationSupport : 1; bool fFloatIs32Bits : 1; bool fHalfIs32Bits : 1; |