Home | History | Annotate | Download | only in RenderEngine

Lines Matching refs:description

24 #include "Description.h"
87 ProgramCache::Key ProgramCache::computeKey(const Description& description) {
90 !description.mTextureEnabled ? Key::TEXTURE_OFF :
91 description.mTexture.getTextureTarget() == GL_TEXTURE_EXTERNAL_OES ? Key::TEXTURE_EXT :
92 description.mTexture.getTextureTarget() == GL_TEXTURE_2D ? Key::TEXTURE_2D :
95 (description.mPlaneAlpha < 1) ? Key::PLANE_ALPHA_LT_ONE : Key::PLANE_ALPHA_EQ_ONE)
97 description.mPremultipliedAlpha ? Key::BLEND_PREMULT : Key::BLEND_NORMAL)
99 description.mOpaque ? Key::OPACITY_OPAQUE : Key::OPACITY_TRANSLUCENT)
101 description.mColorMatrixEnabled ? Key::COLOR_MATRIX_ON : Key::COLOR_MATRIX_OFF);
195 void ProgramCache::useProgram(const Description& description) {
197 // generate the key for the shader based on the description
198 Key needs(computeKey(description));
213 // here we have a suitable program for this description
216 program->setUniforms(description);