diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-03-28 20:09:58 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-02 16:05:05 +0000 |
commit | 7c7ff031a51901f3064d0ceca93c97111c85292e (patch) | |
tree | 6bd30cdf149ae4a9dc1cafa440d4fa33ccd17ec5 /src/gpu/GrShaderCaps.cpp | |
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 'src/gpu/GrShaderCaps.cpp')
-rw-r--r-- | src/gpu/GrShaderCaps.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrShaderCaps.cpp b/src/gpu/GrShaderCaps.cpp index 5c6d0b9ce7..c0b34ab746 100644 --- a/src/gpu/GrShaderCaps.cpp +++ b/src/gpu/GrShaderCaps.cpp @@ -46,6 +46,7 @@ GrShaderCaps::GrShaderCaps(const GrContextOptions& options) { fExternalTextureSupport = false; fTexelFetchSupport = false; fVertexIDSupport = false; + fFPManipulationSupport = false; fFloatIs32Bits = true; fHalfIs32Bits = false; @@ -118,6 +119,7 @@ void GrShaderCaps::dumpJSON(SkJSONWriter* writer) const { writer->appendBool("External texture support", fExternalTextureSupport); writer->appendBool("texelFetch support", fTexelFetchSupport); writer->appendBool("sk_VertexID support", fVertexIDSupport); + writer->appendBool("Floating point manipulation support", fFPManipulationSupport); writer->appendBool("float == fp32", fFloatIs32Bits); writer->appendBool("half == fp32", fHalfIs32Bits); |