• Home
  • Raw
  • Download

Lines Matching refs:textureUnit

1486         for (size_t textureUnit = 0; textureUnit < mSamplerTextures[type].size(); ++textureUnit)  in initializeZeroTextures()  local
1488 mSamplerTextures[type][textureUnit].set(context, zeroTextures[type].get()); in initializeZeroTextures()
1498 void State::setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler) in setSamplerBinding() argument
1500 if (mSamplers[textureUnit].get() == sampler) in setSamplerBinding()
1503 mSamplers[textureUnit].set(context, sampler); in setSamplerBinding()
1506 setSamplerDirty(textureUnit); in setSamplerBinding()
1507 onActiveTextureChange(context, textureUnit); in setSamplerBinding()
1508 onActiveTextureStateChange(context, textureUnit); in setSamplerBinding()
3308 void State::onActiveTextureChange(const Context *context, size_t textureUnit) in onActiveTextureChange() argument
3312 TextureType type = mExecutable->getActiveSamplerTypes()[textureUnit]; in onActiveTextureChange()
3315 Texture *activeTexture = getTextureForActiveSampler(type, textureUnit); in onActiveTextureChange()
3316 updateActiveTexture(context, textureUnit, activeTexture); in onActiveTextureChange()
3321 void State::onActiveTextureStateChange(const Context *context, size_t textureUnit) in onActiveTextureStateChange() argument
3325 TextureType type = mExecutable->getActiveSamplerTypes()[textureUnit]; in onActiveTextureStateChange()
3328 Texture *activeTexture = getTextureForActiveSampler(type, textureUnit); in onActiveTextureStateChange()
3329 const Sampler *sampler = mSamplers[textureUnit].get(); in onActiveTextureStateChange()
3330 updateActiveTextureState(context, textureUnit, sampler, activeTexture); in onActiveTextureStateChange()