diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-09-29 09:49:13 -0700 |
|---|---|---|
| committer | Alex Sakhartchouk <alexst@google.com> | 2010-09-29 09:49:13 -0700 |
| commit | 886f11ade9dde05485cb11c0d67d87f76a428f6c (patch) | |
| tree | c0c954dd5c883e139fa1e00823105d6487238321 /rsProgramVertex.cpp | |
| parent | 8d957fa762eff6c03a93ddea9405d9575665f1ec (diff) | |
| download | android_frameworks_rs-886f11ade9dde05485cb11c0d67d87f76a428f6c.tar.gz android_frameworks_rs-886f11ade9dde05485cb11c0d67d87f76a428f6c.tar.bz2 android_frameworks_rs-886f11ade9dde05485cb11c0d67d87f76a428f6c.zip | |
More robust attribute binding
Adding attribute and uniform debug logging.
Checking to see if aniso filtering is available.
Change-Id: I2ed9d166ed7ff3df971d7af18b7a33f4e3ade928
Diffstat (limited to 'rsProgramVertex.cpp')
| -rw-r--r-- | rsProgramVertex.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp index 918625c5..bd129895 100644 --- a/rsProgramVertex.cpp +++ b/rsProgramVertex.cpp @@ -214,12 +214,11 @@ void ProgramVertex::init(Context *rsc) mAttribCount = 0; if (mUserShader.size() > 0) { for (uint32_t ct=0; ct < mInputCount; ct++) { - initAddUserElement(mInputElements[ct].get(), mAttribNames, &mAttribCount, "ATTRIB_"); + initAddUserElement(mInputElements[ct].get(), mAttribNames, &mAttribCount, RS_SHADER_ATTR); } - mUniformCount = 0; for (uint32_t ct=0; ct < mConstantCount; ct++) { - initAddUserElement(mConstantTypes[ct]->getElement(), mUniformNames, &mUniformCount, "UNI_"); + initAddUserElement(mConstantTypes[ct]->getElement(), mUniformNames, &mUniformCount, RS_SHADER_UNI); } } createShader(); |
