Lines Matching refs:glu
846 static inline glu::DataType getSamplerType (TextureType textureType, const tcu::TextureFormat& format)
852 case TEXTURETYPE_2D: return glu::TYPE_SAMPLER_2D_SHADOW;
853 case TEXTURETYPE_2D_ARRAY: return glu::TYPE_SAMPLER_2D_ARRAY_SHADOW;
854 case TEXTURETYPE_CUBE: return glu::TYPE_SAMPLER_CUBE_SHADOW;
855 default: DE_ASSERT(false); return glu::TYPE_LAST;
862 case TEXTURETYPE_2D: return glu::getSampler2DType(format);
863 case TEXTURETYPE_2D_ARRAY: return glu::getSampler2DArrayType(format);
864 case TEXTURETYPE_CUBE: return glu::getSamplerCubeType(format);
865 default: DE_ASSERT(false); return glu::TYPE_LAST;
870 static inline glu::DataType getSamplerGatherResultType (glu::DataType samplerType)
874 case glu::TYPE_SAMPLER_2D_SHADOW:
875 case glu::TYPE_SAMPLER_2D_ARRAY_SHADOW:
876 case glu::TYPE_SAMPLER_CUBE_SHADOW:
877 case glu::TYPE_SAMPLER_2D:
878 case glu::TYPE_SAMPLER_2D_ARRAY:
879 case glu::TYPE_SAMPLER_CUBE:
880 return glu::TYPE_FLOAT_VEC4;
882 case glu::TYPE_INT_SAMPLER_2D:
883 case glu::TYPE_INT_SAMPLER_2D_ARRAY:
884 case glu::TYPE_INT_SAMPLER_CUBE:
885 return glu::TYPE_INT_VEC4;
887 case glu::TYPE_UINT_SAMPLER_2D:
888 case glu::TYPE_UINT_SAMPLER_2D_ARRAY:
889 case glu::TYPE_UINT_SAMPLER_CUBE:
890 return glu::TYPE_UINT_VEC4;
894 return glu::TYPE_LAST;
1170 DE_ASSERT(glu::isGLInternalColorFormatFilterable(glu::getInternalFormat(m_colorBufferFormat)) ||
1521 glu::VertexSource genVertexShaderSource (bool requireGpuShader5, int numTexCoordComponents, bool useNormalizedCoordInput)
1557 return glu::VertexSource(vert.str());
1560 glu::FragmentSource genFragmentShaderSource (bool requireGpuShader5,
1562 glu::DataType samplerType,
1570 DE_ASSERT(glu::isDataTypeSampler(samplerType));
1577 const string outType = glu::getDataTypeName(getSamplerGatherResultType(samplerType));
1599 "layout (binding = " << binding++ << ") uniform highp " << glu::getDataTypeName(samplerType) << " u_sampler;\n";
1633 return glu::FragmentSource(frag.str());
1813 const glu::DataType samplerType = getSamplerType(baseParams.textureType, baseParams.textureFormat);
1815 glu::VertexSource vert = genVertexShaderSource(requireGpuShader5(baseParams.gatherType, baseParams.offsetSize), numDims, isDynamicOffset || isShadow);
1820 std::vector<glu::DataType> validSamplerTypes =
1822 glu::TYPE_SAMPLER_2D,
1823 glu::TYPE_SAMPLER_2D_ARRAY,
1824 glu::TYPE_INT_SAMPLER_2D,
1825 glu::TYPE_INT_SAMPLER_2D_ARRAY,
1826 glu::TYPE_UINT_SAMPLER_2D,
1827 glu::TYPE_UINT_SAMPLER_2D_ARRAY,
1832 static const std::vector<glu::DataType> kAdditionalTypes =
1834 glu::TYPE_SAMPLER_CUBE,
1835 glu::TYPE_SAMPLER_CUBE_ARRAY,
1836 glu::TYPE_INT_SAMPLER_CUBE,
1837 glu::TYPE_INT_SAMPLER_CUBE_ARRAY,
1838 glu::TYPE_UINT_SAMPLER_CUBE,
1839 glu::TYPE_UINT_SAMPLER_CUBE_ARRAY,
1856 glu::FragmentSource frag = genFragmentShaderSource(requireGpuShader5(baseParams.gatherType, baseParams.offsetSize), numDims, samplerType, funcCall, useNormalizedCoord, usePixCoord, baseParams.offsetSize, baseParams.sparseCase, baseParams.levelMode);