diff options
Diffstat (limited to 'src/gpu/GrEffect.cpp')
-rw-r--r-- | src/gpu/GrEffect.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrEffect.cpp b/src/gpu/GrEffect.cpp index 6e743e7f95..2aad7cf00e 100644 --- a/src/gpu/GrEffect.cpp +++ b/src/gpu/GrEffect.cpp @@ -90,6 +90,11 @@ void GrEffect::addTextureAccess(const GrTextureAccess* access) { fTextureAccesses.push_back(access); } +void GrEffect::addVertexAttrib(GrSLType type) { + GrAssert(fVertexAttribTypes.count() < kMaxVertexAttribs); + fVertexAttribTypes.push_back(type); +} + void* GrEffect::operator new(size_t size) { return GrEffect_Globals::GetTLS()->allocate(size); } |