Lines Matching defs:sampler

271         for (int sampler = 0; sampler < IMPLEMENTATION_MAX_COMBINED_TEXTURE_IMAGE_UNITS; sampler++)
273 mState.samplerTexture[type][sampler].set(NULL);
1026 void Context::deleteSampler(GLuint sampler)
1028 if (mResourceManager->getSampler(sampler))
1030 detachSampler(sampler);
1033 mResourceManager->deleteSampler(sampler);
1258 void Context::bindSampler(GLuint textureUnit, GLuint sampler)
1261 mResourceManager->checkSamplerAllocation(sampler);
1263 mState.samplers[textureUnit] = sampler;
1615 Texture *Context::getSamplerTexture(unsigned int sampler, TextureType type) const
1617 GLuint texid = mState.samplerTexture[type][sampler].id();
1631 return mState.samplerTexture[type][sampler].get();
2491 // For each Direct3D sampler of either the pixel or vertex stage,
2498 // Range of Direct3D samplers of given sampler type
2505 const SamplerState &sampler = samplers[samplerIndex];
2511 if (texture->isSamplerComplete(sampler) &&
2514 mRenderer->setSamplerState(shaderType, samplerIndex, sampler);
3385 for (int sampler = 0; sampler < IMPLEMENTATION_MAX_COMBINED_TEXTURE_IMAGE_UNITS; sampler++)
3387 if (mState.samplerTexture[type][sampler].id() == texture)
3389 mState.samplerTexture[type][sampler].set(NULL);
3479 void Context::detachSampler(GLuint sampler)
3482 // If a sampler object that is currently bound to one or more texture units is
3484 // which the sampler is bound, with unit set to the texture unit and sampler set to zero.
3487 if (mState.samplers[textureUnit] == sampler)
3607 void Context::samplerParameteri(GLuint sampler, GLenum pname, GLint param)
3609 mResourceManager->checkSamplerAllocation(sampler);
3611 Sampler *samplerObject = getSampler(sampler);
3629 void Context::samplerParameterf(GLuint sampler, GLenum pname, GLfloat param)
3631 mResourceManager->checkSamplerAllocation(sampler);
3633 Sampler *samplerObject = getSampler(sampler);
3651 GLint Context::getSamplerParameteri(GLuint sampler, GLenum pname)
3653 mResourceManager->checkSamplerAllocation(sampler);
3655 Sampler *samplerObject = getSampler(sampler);
3673 GLfloat Context::getSamplerParameterf(GLuint sampler, GLenum pname)
3675 mResourceManager->checkSamplerAllocation(sampler);
3677 Sampler *samplerObject = getSampler(sampler);