diff options
author | 2016-11-18 15:35:33 -0500 | |
---|---|---|
committer | 2016-11-18 21:15:20 +0000 | |
commit | f31ae495271e0343f568fb9a1d7e2df81e196896 (patch) | |
tree | d1314d94fb65221426e11983f1e3b306e8e1d560 /bench/GLVertexAttributesBench.cpp | |
parent | c36dedf613b09cc5e2286b2f0602c73722c85958 (diff) |
Remove unnecessary attribute and varying type modifiers
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5007
Change-Id: Ic9fefe09221d5e367b5aa5dd0084fc7d6631998c
Reviewed-on: https://skia-review.googlesource.com/5007
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'bench/GLVertexAttributesBench.cpp')
-rw-r--r-- | bench/GLVertexAttributesBench.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/GLVertexAttributesBench.cpp b/bench/GLVertexAttributesBench.cpp index f579a3ea39..1bd4ff3f30 100644 --- a/bench/GLVertexAttributesBench.cpp +++ b/bench/GLVertexAttributesBench.cpp @@ -69,7 +69,7 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a const char* version = glslCaps->versionDeclString(); // setup vertex shader - GrGLSLShaderVar aPosition("a_position", kVec4f_GrSLType, GrShaderVar::kAttribute_TypeModifier); + GrGLSLShaderVar aPosition("a_position", kVec4f_GrSLType, GrShaderVar::kIn_TypeModifier); SkTArray<GrGLSLShaderVar> aVars; SkTArray<GrGLSLShaderVar> oVars; @@ -82,7 +82,7 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a aname.appendf("a_color_%d", i); aVars.push_back(GrGLSLShaderVar(aname.c_str(), kVec4f_GrSLType, - GrShaderVar::kAttribute_TypeModifier)); + GrShaderVar::kIn_TypeModifier)); aVars.back().appendDecl(glslCaps, &vshaderTxt); vshaderTxt.append(";\n"); @@ -93,7 +93,7 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a oname.appendf("o_color_%d", i); oVars.push_back(GrGLSLShaderVar(oname.c_str(), kVec4f_GrSLType, - GrShaderVar::kVaryingOut_TypeModifier)); + GrShaderVar::kOut_TypeModifier)); oVars.back().appendDecl(glslCaps, &vshaderTxt); vshaderTxt.append(";\n"); } @@ -129,7 +129,7 @@ GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t a } for (uint32_t i = 0; i < maxAttribs; i++) { - oVars[i].setTypeModifier(GrShaderVar::kVaryingIn_TypeModifier); + oVars[i].setTypeModifier(GrShaderVar::kIn_TypeModifier); oVars[i].appendDecl(glslCaps, &fshaderTxt); fshaderTxt.append(";\n"); } |