Lines Matching refs:samplerObject

1287 	Sampler* samplerObject = getSampler(sampler);  in bindSampler()  local
1289 mState.sampler[unit] = samplerObject; in bindSampler()
1291 return !!samplerObject; in bindSampler()
1716 Sampler *samplerObject = getSampler(sampler); in samplerParameteri() local
1717 ASSERT(samplerObject); in samplerParameteri()
1721 …case GL_TEXTURE_MIN_FILTER: samplerObject->setMinFilter(static_cast<GLenum>(param)); … in samplerParameteri()
1722 …case GL_TEXTURE_MAG_FILTER: samplerObject->setMagFilter(static_cast<GLenum>(param)); … in samplerParameteri()
1723 …case GL_TEXTURE_WRAP_S: samplerObject->setWrapS(static_cast<GLenum>(param)); … in samplerParameteri()
1724 …case GL_TEXTURE_WRAP_T: samplerObject->setWrapT(static_cast<GLenum>(param)); … in samplerParameteri()
1725 …case GL_TEXTURE_WRAP_R: samplerObject->setWrapR(static_cast<GLenum>(param)); … in samplerParameteri()
1726 …case GL_TEXTURE_MIN_LOD: samplerObject->setMinLod(static_cast<GLfloat>(param)); … in samplerParameteri()
1727 …case GL_TEXTURE_MAX_LOD: samplerObject->setMaxLod(static_cast<GLfloat>(param)); … in samplerParameteri()
1728 …case GL_TEXTURE_COMPARE_MODE: samplerObject->setCompareMode(static_cast<GLenum>(param)); … in samplerParameteri()
1729 …case GL_TEXTURE_COMPARE_FUNC: samplerObject->setCompareFunc(static_cast<GLenum>(param)); … in samplerParameteri()
1730 …case GL_TEXTURE_MAX_ANISOTROPY_EXT: samplerObject->setMaxAnisotropy(static_cast<GLfloat>(param)); … in samplerParameteri()
1739 Sampler *samplerObject = getSampler(sampler); in samplerParameterf() local
1740 ASSERT(samplerObject); in samplerParameterf()
1744 …case GL_TEXTURE_MIN_FILTER: samplerObject->setMinFilter(static_cast<GLenum>(roundf(param))… in samplerParameterf()
1745 …case GL_TEXTURE_MAG_FILTER: samplerObject->setMagFilter(static_cast<GLenum>(roundf(param))… in samplerParameterf()
1746 …case GL_TEXTURE_WRAP_S: samplerObject->setWrapS(static_cast<GLenum>(roundf(param))); … in samplerParameterf()
1747 …case GL_TEXTURE_WRAP_T: samplerObject->setWrapT(static_cast<GLenum>(roundf(param))); … in samplerParameterf()
1748 …case GL_TEXTURE_WRAP_R: samplerObject->setWrapR(static_cast<GLenum>(roundf(param))); … in samplerParameterf()
1749 …case GL_TEXTURE_MIN_LOD: samplerObject->setMinLod(param); … in samplerParameterf()
1750 …case GL_TEXTURE_MAX_LOD: samplerObject->setMaxLod(param); … in samplerParameterf()
1751 …case GL_TEXTURE_COMPARE_MODE: samplerObject->setCompareMode(static_cast<GLenum>(roundf(param… in samplerParameterf()
1752 …case GL_TEXTURE_COMPARE_FUNC: samplerObject->setCompareFunc(static_cast<GLenum>(roundf(param… in samplerParameterf()
1753 …case GL_TEXTURE_MAX_ANISOTROPY_EXT: samplerObject->setMaxAnisotropy(param); … in samplerParameterf()
1762 Sampler *samplerObject = getSampler(sampler); in getSamplerParameteri() local
1763 ASSERT(samplerObject); in getSamplerParameteri()
1767 case GL_TEXTURE_MIN_FILTER: return static_cast<GLint>(samplerObject->getMinFilter()); in getSamplerParameteri()
1768 case GL_TEXTURE_MAG_FILTER: return static_cast<GLint>(samplerObject->getMagFilter()); in getSamplerParameteri()
1769 case GL_TEXTURE_WRAP_S: return static_cast<GLint>(samplerObject->getWrapS()); in getSamplerParameteri()
1770 case GL_TEXTURE_WRAP_T: return static_cast<GLint>(samplerObject->getWrapT()); in getSamplerParameteri()
1771 case GL_TEXTURE_WRAP_R: return static_cast<GLint>(samplerObject->getWrapR()); in getSamplerParameteri()
1772 case GL_TEXTURE_MIN_LOD: return static_cast<GLint>(roundf(samplerObject->getMinLod())); in getSamplerParameteri()
1773 case GL_TEXTURE_MAX_LOD: return static_cast<GLint>(roundf(samplerObject->getMaxLod())); in getSamplerParameteri()
1774 case GL_TEXTURE_COMPARE_MODE: return static_cast<GLint>(samplerObject->getCompareMode()); in getSamplerParameteri()
1775 case GL_TEXTURE_COMPARE_FUNC: return static_cast<GLint>(samplerObject->getCompareFunc()); in getSamplerParameteri()
1776 case GL_TEXTURE_MAX_ANISOTROPY_EXT: return static_cast<GLint>(samplerObject->getMaxAnisotropy()); in getSamplerParameteri()
1785 Sampler *samplerObject = getSampler(sampler); in getSamplerParameterf() local
1786 ASSERT(samplerObject); in getSamplerParameterf()
1790 case GL_TEXTURE_MIN_FILTER: return static_cast<GLfloat>(samplerObject->getMinFilter()); in getSamplerParameterf()
1791 case GL_TEXTURE_MAG_FILTER: return static_cast<GLfloat>(samplerObject->getMagFilter()); in getSamplerParameterf()
1792 case GL_TEXTURE_WRAP_S: return static_cast<GLfloat>(samplerObject->getWrapS()); in getSamplerParameterf()
1793 case GL_TEXTURE_WRAP_T: return static_cast<GLfloat>(samplerObject->getWrapT()); in getSamplerParameterf()
1794 case GL_TEXTURE_WRAP_R: return static_cast<GLfloat>(samplerObject->getWrapR()); in getSamplerParameterf()
1795 case GL_TEXTURE_MIN_LOD: return samplerObject->getMinLod(); in getSamplerParameterf()
1796 case GL_TEXTURE_MAX_LOD: return samplerObject->getMaxLod(); in getSamplerParameterf()
1797 case GL_TEXTURE_COMPARE_MODE: return static_cast<GLfloat>(samplerObject->getCompareMode()); in getSamplerParameterf()
1798 case GL_TEXTURE_COMPARE_FUNC: return static_cast<GLfloat>(samplerObject->getCompareFunc()); in getSamplerParameterf()
1799 case GL_TEXTURE_MAX_ANISOTROPY_EXT: return samplerObject->getMaxAnisotropy(); in getSamplerParameterf()
3095 Sampler *samplerObject = mState.sampler[textureUnit]; in applyTextures() local
3097 if(texture->isSamplerComplete(samplerObject)) in applyTextures()
3102 if(samplerObject) in applyTextures()
3104 wrapS = samplerObject->getWrapS(); in applyTextures()
3105 wrapT = samplerObject->getWrapT(); in applyTextures()
3106 wrapR = samplerObject->getWrapR(); in applyTextures()
3107 minFilter = samplerObject->getMinFilter(); in applyTextures()
3108 magFilter = samplerObject->getMagFilter(); in applyTextures()
3109 minLOD = samplerObject->getMinLod(); in applyTextures()
3110 maxLOD = samplerObject->getMaxLod(); in applyTextures()
3111 compFunc = samplerObject->getCompareFunc(); in applyTextures()
3112 compMode = samplerObject->getCompareMode(); in applyTextures()
3113 maxAnisotropy = samplerObject->getMaxAnisotropy(); in applyTextures()