Lines Matching refs:textureIndex
265 for (size_t textureIndex = 0; textureIndex < mTextures.size(); ++textureIndex) in clear() local
267 reset(contextID, textureIndex); in clear()
284 ANGLE_INLINE void ActiveTexturesCache::reset(ContextID contextID, size_t textureIndex) in reset() argument
286 if (mTextures[textureIndex]) in reset()
288 mTextures[textureIndex]->onUnbindAsSamplerTexture(contextID); in reset()
289 mTextures[textureIndex] = nullptr; in reset()
294 size_t textureIndex, in set() argument
298 if (mTextures[textureIndex]) in set()
300 mTextures[textureIndex]->onUnbindAsSamplerTexture(contextID); in set()
305 mTextures[textureIndex] = texture; in set()
480 for (int32_t textureIndex = 0; textureIndex < caps.maxCombinedTextureImageUnits; ++textureIndex) in initialize() local
482 mCompleteTextureBindings.emplace_back(context, textureIndex); in initialize()
590 for (size_t textureIndex : textureMask) in unsetActiveTextures() local
592 mActiveTexturesCache.reset(mID, textureIndex); in unsetActiveTextures()
593 mCompleteTextureBindings[textureIndex].reset(); in unsetActiveTextures()
598 size_t textureIndex, in updateActiveTextureState() argument
604 mActiveTexturesCache.reset(mID, textureIndex); in updateActiveTextureState()
608 mActiveTexturesCache.set(mID, textureIndex, texture); in updateActiveTextureState()
612 setTextureDirty(textureIndex); in updateActiveTextureState()
625 mTexturesIncompatibleWithSamplers[textureIndex] = in updateActiveTextureState()
627 mExecutable->getSamplerFormatForTextureUnitIndex(textureIndex), samplerState); in updateActiveTextureState()
631 mTexturesIncompatibleWithSamplers[textureIndex] = false; in updateActiveTextureState()
638 size_t textureIndex, in updateActiveTexture() argument
641 const Sampler *sampler = mSamplers[textureIndex].get(); in updateActiveTexture()
643 mCompleteTextureBindings[textureIndex].bind(texture); in updateActiveTexture()
647 mActiveTexturesCache.reset(mID, textureIndex); in updateActiveTexture()
652 updateActiveTextureState(context, textureIndex, sampler, texture); in updateActiveTexture()
3036 for (size_t textureIndex : mDirtyTextures) in syncTextures() local
3038 Texture *texture = mActiveTexturesCache[textureIndex]; in syncTextures()
3188 for (size_t textureIndex : executable.getActiveSamplersMask()) in onProgramExecutableChange() local
3190 TextureType type = textureTypes[textureIndex]; in onProgramExecutableChange()
3196 Texture *texture = getTextureForActiveSampler(type, textureIndex); in onProgramExecutableChange()
3197 updateActiveTexture(context, textureIndex, texture); in onProgramExecutableChange()
3233 for (size_t textureIndex : programPipeline->getExecutable().getActiveSamplersMask()) in onProgramPipelineExecutableChange() local
3235 TextureType type = textureTypes[textureIndex]; in onProgramPipelineExecutableChange()
3241 Texture *texture = getTextureForActiveSampler(type, textureIndex); in onProgramPipelineExecutableChange()
3242 updateActiveTexture(context, textureIndex, texture); in onProgramPipelineExecutableChange()