From 3a2caf8ecf38124f4ad21a0f6c4dabfcfa17911a Mon Sep 17 00:00:00 2001 From: cdalton Date: Fri, 5 Feb 2016 16:26:32 -0800 Subject: 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 Review URL: https://codereview.chromium.org/1669853002 --- src/gpu/GrCaps.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu/GrCaps.cpp') diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp index 46f49357c7..2568e567fc 100644 --- a/src/gpu/GrCaps.cpp +++ b/src/gpu/GrCaps.cpp @@ -15,6 +15,7 @@ GrShaderCaps::GrShaderCaps() { fPathRenderingSupport = false; fDstReadInShaderSupport = false; fDualSourceBlendingSupport = false; + fIntegerSupport = false; fShaderPrecisionVaries = false; } @@ -50,6 +51,7 @@ SkString GrShaderCaps::dump() const { r.appendf("Path Rendering Support : %s\n", gNY[fPathRenderingSupport]); r.appendf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderSupport]); r.appendf("Dual Source Blending Support : %s\n", gNY[fDualSourceBlendingSupport]); + r.appendf("Integer Support : %s\n", gNY[fIntegerSupport]); r.appendf("Shader Float Precisions (varies: %s):\n", gNY[fShaderPrecisionVaries]); -- cgit v1.2.3