Lines Matching full:sampler
69 TextureBinding::TextureBinding (const glu::Texture2D* tex2D, const tcu::Sampler& sampler)
71 , m_sampler (sampler)
76 TextureBinding::TextureBinding (const glu::TextureCube* texCube, const tcu::Sampler& sampler)
78 , m_sampler (sampler)
83 TextureBinding::TextureBinding (const glu::Texture2DArray* tex2DArray, const tcu::Sampler& sampler)
85 , m_sampler (sampler)
90 TextureBinding::TextureBinding (const glu::Texture3D* tex3D, const tcu::Sampler& sampler)
92 , m_sampler (sampler)
103 void TextureBinding::setSampler (const tcu::Sampler& sampler)
105 m_sampler = sampler;
279 textures[ndx].sampler = binding.getSampler();
317 return textures[unitNdx].tex2D->sample(textures[unitNdx].sampler, texCoords.x(), texCoords.y(), 0.0f);
490 const tcu::Sampler& sampler = tex.getSampler();
506 if (sampler.compare != tcu::Sampler::COMPAREMODE_NONE)
522 gl.texParameteri(texTarget, GL_TEXTURE_WRAP_S, glu::getGLWrapMode(sampler.wrapS));
523 gl.texParameteri(texTarget, GL_TEXTURE_WRAP_T, glu::getGLWrapMode(sampler.wrapT));
524 gl.texParameteri(texTarget, GL_TEXTURE_MIN_FILTER, glu::getGLFilterMode(sampler.minFilter));
525 gl.texParameteri(texTarget, GL_TEXTURE_MAG_FILTER, glu::getGLFilterMode(sampler.magFilter));
528 gl.texParameteri(texTarget, GL_TEXTURE_WRAP_R, glu::getGLWrapMode(sampler.wrapR));
530 if (sampler.compare != tcu::Sampler::COMPAREMODE_NONE)
533 gl.texParameteri(texTarget, GL_TEXTURE_COMPARE_FUNC, glu::getGLCompareFunc(sampler.compare));
537 GLU_EXPECT_NO_ERROR(gl.getError(), "texture sampler setup");