commit | 793dc26ca6ba2543bf50e5215b858d1c265af50c | [log] [tgz] |
---|---|---|
author | cdalton <cdalton@nvidia.com> | Mon Feb 08 10:11:47 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Mon Feb 08 10:11:47 2016 -0800 |
tree | 7231d4f0f24139a4397433cdca66971f72a0866b | |
parent | 2f8c9bf96ceea9d13fb0fc29285ecaf1673f2e8b [diff] [blame] |
Improve GLSL integer support - Adds shader types for uint. - Adds a cap for integer support. - Uses glVertexAttribIPointer for integer attribs. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1669853002 Committed: https://skia.googlesource.com/skia/+/3a2caf8ecf38124f4ad21a0f6c4dabfcfa17911a Review URL: https://codereview.chromium.org/1669853002
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h index 944fb14..fc68206 100644 --- a/include/gpu/GrCaps.h +++ b/include/gpu/GrCaps.h
@@ -62,6 +62,7 @@ bool pathRenderingSupport() const { return fPathRenderingSupport; } bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; } + bool integerSupport() const { return fIntegerSupport; } /** * Get the precision info for a variable of type kFloat_GrSLType, kVec2f_GrSLType, etc in a @@ -109,6 +110,7 @@ bool fPathRenderingSupport : 1; bool fDstReadInShaderSupport : 1; bool fDualSourceBlendingSupport : 1; + bool fIntegerSupport : 1; bool fShaderPrecisionVaries; PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount];