Lines Matching full:sampler
114 inline bool isMipmapFilter (const tcu::Sampler::FilterMode mode)
116 return mode != tcu::Sampler::NEAREST && mode != tcu::Sampler::LINEAR;
389 m_emptyTex1D.getSampler().wrapS = tcu::Sampler::CLAMP_TO_EDGE;
390 m_emptyTex1D.getSampler().wrapT = tcu::Sampler::CLAMP_TO_EDGE;
391 m_emptyTex1D.getSampler().minFilter = tcu::Sampler::NEAREST;
392 m_emptyTex1D.getSampler().magFilter = tcu::Sampler::NEAREST;
395 m_emptyTex1D.updateView(tcu::Sampler::MODE_LAST);
397 m_emptyTex2D.getSampler().wrapS = tcu::Sampler::CLAMP_TO_EDGE;
398 m_emptyTex2D.getSampler().wrapT = tcu::Sampler::CLAMP_TO_EDGE;
399 m_emptyTex2D.getSampler().minFilter = tcu::Sampler::NEAREST;
400 m_emptyTex2D.getSampler().magFilter = tcu::Sampler::NEAREST;
403 m_emptyTex2D.updateView(tcu::Sampler::MODE_LAST);
405 m_emptyTexCube.getSampler().wrapS = tcu::Sampler::CLAMP_TO_EDGE;
406 m_emptyTexCube.getSampler().wrapT = tcu::Sampler::CLAMP_TO_EDGE;
407 m_emptyTexCube.getSampler().minFilter = tcu::Sampler::NEAREST;
408 m_emptyTexCube.getSampler().magFilter = tcu::Sampler::NEAREST;
414 m_emptyTexCube.updateView(tcu::Sampler::MODE_LAST);
416 m_emptyTex2DArray.getSampler().wrapS = tcu::Sampler::CLAMP_TO_EDGE;
417 m_emptyTex2DArray.getSampler().wrapT = tcu::Sampler::CLAMP_TO_EDGE;
418 m_emptyTex2DArray.getSampler().minFilter = tcu::Sampler::NEAREST;
419 m_emptyTex2DArray.getSampler().magFilter = tcu::Sampler::NEAREST;
422 m_emptyTex2DArray.updateView(tcu::Sampler::MODE_LAST);
424 m_emptyTex3D.getSampler().wrapS = tcu::Sampler::CLAMP_TO_EDGE;
425 m_emptyTex3D.getSampler().wrapT = tcu::Sampler::CLAMP_TO_EDGE;
426 m_emptyTex3D.getSampler().wrapR = tcu::Sampler::CLAMP_TO_EDGE;
427 m_emptyTex3D.getSampler().minFilter = tcu::Sampler::NEAREST;
428 m_emptyTex3D.getSampler().magFilter = tcu::Sampler::NEAREST;
431 m_emptyTex3D.updateView(tcu::Sampler::MODE_LAST);
433 m_emptyTexCubeArray.getSampler().wrapS = tcu::Sampler::CLAMP_TO_EDGE;
434 m_emptyTexCubeArray.getSampler().wrapT = tcu::Sampler::CLAMP_TO_EDGE;
435 m_emptyTexCubeArray.getSampler().minFilter = tcu::Sampler::NEAREST;
436 m_emptyTexCubeArray.getSampler().magFilter = tcu::Sampler::NEAREST;
440 m_emptyTexCubeArray.updateView(tcu::Sampler::MODE_LAST);
1792 static inline tcu::Sampler::WrapMode mapGLWrapMode (int value)
1796 case GL_CLAMP_TO_EDGE: return tcu::Sampler::CLAMP_TO_EDGE;
1797 case GL_REPEAT: return tcu::Sampler::REPEAT_GL;
1798 case GL_MIRRORED_REPEAT: return tcu::Sampler::MIRRORED_REPEAT_GL;
1799 default: return tcu::Sampler::WRAPMODE_LAST;
1803 static inline tcu::Sampler::FilterMode mapGLFilterMode (int value)
1807 case GL_NEAREST: return tcu::Sampler::NEAREST;
1808 case GL_LINEAR: return tcu::Sampler::LINEAR;
1809 case GL_NEAREST_MIPMAP_NEAREST: return tcu::Sampler::NEAREST_MIPMAP_NEAREST;
1810 case GL_NEAREST_MIPMAP_LINEAR: return tcu::Sampler::NEAREST_MIPMAP_LINEAR;
1811 case GL_LINEAR_MIPMAP_NEAREST: return tcu::Sampler::LINEAR_MIPMAP_NEAREST;
1812 case GL_LINEAR_MIPMAP_LINEAR: return tcu::Sampler::LINEAR_MIPMAP_LINEAR;
1813 default: return tcu::Sampler::FILTERMODE_LAST;
1838 tcu::Sampler::WrapMode wrapS = mapGLWrapMode(value);
1839 RC_IF_ERROR(wrapS == tcu::Sampler::WRAPMODE_LAST, GL_INVALID_VALUE, RC_RET_VOID);
1846 tcu::Sampler::WrapMode wrapT = mapGLWrapMode(value);
1847 RC_IF_ERROR(wrapT == tcu::Sampler::WRAPMODE_LAST, GL_INVALID_VALUE, RC_RET_VOID);
1854 tcu::Sampler::WrapMode wrapR = mapGLWrapMode(value);
1855 RC_IF_ERROR(wrapR == tcu::Sampler::WRAPMODE_LAST, GL_INVALID_VALUE, RC_RET_VOID);
1862 tcu::Sampler
1863 RC_IF_ERROR(minMode == tcu::Sampler::FILTERMODE_LAST, GL_INVALID_VALUE, RC_RET_VOID);
1870 tcu::Sampler::FilterMode magMode = mapGLFilterMode(value);
1871 RC_IF_ERROR(magMode != tcu::Sampler::LINEAR && magMode != tcu::Sampler::NEAREST,
3026 return rr::MultisamplePixelBufferAccess::fromMultisampleAccess(tcu::getEffectiveDepthStencilAccess(combinedDSaccess.raw(), tcu::Sampler::MODE_DEPTH));
3031 return rr::MultisamplePixelBufferAccess::fromMultisampleAccess(tcu::getEffectiveDepthStencilAccess(combinedDSaccess.raw(), tcu::Sampler::MODE_STENCIL));
3194 tcu::Sampler::FilterMode sFilter = (scale && filter == GL_LINEAR) ? tcu::Sampler::LINEAR : tcu::Sampler::NEAREST;
3195 tcu::Sampler sampler (tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
3225 if (dstIsFloat || srcIsSRGB || filter == tcu::Sampler::LINEAR)
3227 Vec4 p = src.sample2D(sampler, sampler.minFilter, sX, sY, 0);
4408 const tcu::Sampler::DepthStencilMode depthStencilMode = tcu::Sampler::MODE_DEPTH; // \todo[jarkko] support sampler state
4425 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex1D = tex;
4428 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex1D = &m_emptyTex1D;
4444 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex2D = tex;
4447 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex2D = &m_emptyTex2D;
4463 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.texCube = tex;
4466 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.texCube = &m_emptyTexCube;
4482 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex2DArray = tex;
4485 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex2DArray = &m_emptyTex2DArray;
4501 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex3D = tex;
4504 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.tex3D = &m_emptyTex3D;
4520 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.texCubeArray = tex;
4523 m_currentProgram->m_program->m_uniforms[uniformNdx].sampler.texCubeArray = &m_emptyTexCubeArray;
4702 void TextureLevelArray::updateSamplerMode (tcu::Sampler::DepthStencilMode mode)
4712 , m_sampler (tcu::Sampler::REPEAT_GL,
4713 tcu::Sampler::REPEAT_GL,
4714 tcu::Sampler::REPEAT_GL,
4715 tcu::Sampler::NEAREST_MIPMAP_LINEAR,
4716 tcu::Sampler::LINEAR,
4719 tcu::Sampler::COMPAREMODE_NONE,
4809 void Texture1D::updateView (tcu::Sampler::DepthStencilMode mode)
4881 void Texture2D::updateView (tcu::Sampler::DepthStencilMode mode)
4993 void TextureCube::updateView (tcu::Sampler::DepthStencilMode mode)
5115 void Texture2DArray::updateView (tcu::Sampler::DepthStencilMode mode)
5221 void TextureCubeArray::updateView (tcu::Sampler::DepthStencilMode mode)
5374 void Texture3D::updateView (tcu::Sampler::DepthStencilMode mode)