Home
last modified time | relevance | path

Searched refs:samplerType (Results 1 – 25 of 41) sorted by relevance

12

/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageTests.cpp202 std::ostringstream samplerType; in getGlslSamplerType() local
205 samplerType << "u"; in getGlslSamplerType()
207 samplerType << "i"; in getGlslSamplerType()
212 samplerType << "sampler1D"; in getGlslSamplerType()
216 samplerType << "sampler1DArray"; in getGlslSamplerType()
220 samplerType << "sampler2D"; in getGlslSamplerType()
224 samplerType << "sampler2DArray"; in getGlslSamplerType()
228 samplerType << "sampler3D"; in getGlslSamplerType()
232 samplerType << "samplerCube"; in getGlslSamplerType()
236 samplerType << "samplerCubeArray"; in getGlslSamplerType()
[all …]
DvktPipelineImageViewTests.cpp229 std::ostringstream samplerType; in getGlslSamplerType() local
232 samplerType << "u"; in getGlslSamplerType()
234 samplerType << "i"; in getGlslSamplerType()
239 samplerType << "sampler1D"; in getGlslSamplerType()
243 samplerType << "sampler1DArray"; in getGlslSamplerType()
247 samplerType << "sampler2D"; in getGlslSamplerType()
251 samplerType << "sampler2DArray"; in getGlslSamplerType()
255 samplerType << "sampler3D"; in getGlslSamplerType()
259 samplerType << "samplerCube"; in getGlslSamplerType()
263 samplerType << "samplerCubeArray"; in getGlslSamplerType()
[all …]
DvktPipelineSamplerTests.cpp327 std::ostringstream samplerType; in getGlslSamplerType() local
330 samplerType << "u"; in getGlslSamplerType()
332 samplerType << "i"; in getGlslSamplerType()
337 samplerType << "sampler1D"; in getGlslSamplerType()
341 samplerType << "sampler1DArray"; in getGlslSamplerType()
345 samplerType << "sampler2D"; in getGlslSamplerType()
349 samplerType << "sampler2DArray"; in getGlslSamplerType()
353 samplerType << "sampler3D"; in getGlslSamplerType()
357 samplerType << "samplerCube"; in getGlslSamplerType()
361 samplerType << "samplerCubeArray"; in getGlslSamplerType()
[all …]
/external/deqp/modules/gles31/functional/
Des31fOpaqueTypeIndexingTests.cpp119 static TextureType getTextureType (glu::DataType samplerType) in getTextureType() argument
121 switch (samplerType) in getTextureType()
163 static bool isShadowSampler (glu::DataType samplerType) in isShadowSampler() argument
165 return samplerType == glu::TYPE_SAMPLER_1D_SHADOW || in isShadowSampler()
166 samplerType == glu::TYPE_SAMPLER_2D_SHADOW || in isShadowSampler()
167 samplerType == glu::TYPE_SAMPLER_2D_ARRAY_SHADOW || in isShadowSampler()
168 samplerType == glu::TYPE_SAMPLER_CUBE_SHADOW || in isShadowSampler()
169 samplerType == glu::TYPE_SAMPLER_CUBE_ARRAY_SHADOW; in isShadowSampler()
172 static glu::DataType getSamplerOutputType (glu::DataType samplerType) in getSamplerOutputType() argument
174 switch (samplerType) in getSamplerOutputType()
[all …]
Des31fLayoutBindingTests.cpp831 …onst char* desc, ShaderType shaderType, TestType testType, glw::GLenum samplerType, glw::GLenum te…
856 glw::GLenum samplerType, in SamplerBindingRenderCase() argument
859 , m_samplerType (samplerType) in SamplerBindingRenderCase()
949 const std::string samplerType = glu::getDataTypeName(glu::getDataTypeFromGLType(m_samplerType)); in generateShaders() local
956 …iformDecl << "layout(binding = " << m_bindings[declNdx] << ") uniform highp " << samplerType << " " in generateShaders()
1038 glw::GLenum samplerType);
1054 glw::GLenum samplerType) in SamplerBindingNegativeCase() argument
1056 , m_samplerType (samplerType) in SamplerBindingNegativeCase()
1072 const std::string samplerType = glu::getDataTypeName(glu::getDataTypeFromGLType(m_samplerType)); in generateShaders() local
1079 …mDecl << "layout(binding = " << m_vertexShaderBinding[declNdx] << ") uniform highp " << samplerType in generateShaders()
[all …]
Des31fFboTestUtil.hpp88 TextureCubeArrayShader (glu::DataType samplerType, glu::DataType outputType);
Des31fUniformLocationTests.cpp115 …de::MovePtr<glu::Texture2D> createTexture (glu::DataType samplerType, float redChannelValue, int…
457 deUint32 getTextureFormat (glu::DataType samplerType) in getTextureFormat() argument
461 switch (samplerType) in getTextureFormat()
491 de::MovePtr<glu::Texture2D> UniformLocationCase::createTexture (glu::DataType samplerType, float re… in createTexture() argument
497 const deUint32 format = getTextureFormat(samplerType); in createTexture()
Des31fFboTestUtil.cpp265 TextureCubeArrayShader::TextureCubeArrayShader (glu::DataType samplerType, glu::DataType outputType) in TextureCubeArrayShader() argument
272 << sglr::pdec::Uniform("u_sampler0", samplerType) in TextureCubeArrayShader()
292 "uniform highp " + glu::getDataTypeName(samplerType) + " u_sampler0;\n" in TextureCubeArrayShader()
Des31fTextureGatherTests.cpp861 static inline glu::DataType getSamplerGatherResultType (glu::DataType samplerType) in getSamplerGatherResultType() argument
863 switch (samplerType) in getSamplerGatherResultType()
1003 …rce (bool requireGpuShader5, int numTexCoordComponents, glu::DataType samplerType, const string& …
1114 glu::DataType samplerType, in genFragmentShaderSource() argument
1119 DE_ASSERT(glu::isDataTypeSampler(samplerType)); in genFragmentShaderSource()
1128 …n = 0) out mediump " + glu::getDataTypeName(getSamplerGatherResultType(samplerType)) + " o_color;\… in genFragmentShaderSource()
1133 "uniform highp " + string(glu::getDataTypeName(samplerType)) + " u_sampler;\n" in genFragmentShaderSource()
1223 const glu::DataType samplerType = getSamplerType(textureType, textureFormat); in genProgramSources() local
1228 …<< genFragmentShaderSource(requireGpuShader5(gatherType), numDims, samplerType, funcCall, useNorma… in genProgramSources()
Des31fTextureFormatTests.cpp186 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in testLayerFace()
334 renderParams.samplerType = getFetchSamplerType(effectiveRefTexture.getFormat()); in iterate()
Des31fTextureBorderClampTests.cpp1264 …refParams.samplerType = (!m_useShadowSampler) ? (gls::TextureTestUtil::getSamplerType(texFormat… in genSamplerParams()
1298 const char* samplerType; in genGatherProgram() local
1304 samplerType = "sampler2DShadow"; in genGatherProgram()
1314 samplerType = "sampler2D"; in genGatherProgram()
1319 samplerType = "isampler2D"; in genGatherProgram()
1324 samplerType = "usampler2D"; in genGatherProgram()
1329 samplerType = ""; in genGatherProgram()
1336 "uniform highp " << samplerType << " u_sampler;\n" in genGatherProgram()
2256 refParams.samplerType = gls::TextureTestUtil::getSamplerType(texFormat); in getSamplerParams()
/external/skia/src/gpu/glsl/
DGrGLSLShaderBuilder.cpp65 GrSLType samplerType = uniformHandler->getUniformVariable(sampler.fSamplerUniform).getType(); in appendTextureLookup() local
66 if (samplerType == kSampler2DRect_GrSLType) { in appendTextureLookup()
69 GrGLSLTexture2DFunctionName(varyingType, samplerType, in appendTextureLookup()
76 GrGLSLTexture2DFunctionName(varyingType, samplerType, in appendTextureLookup()
85 GrGLSLTexture2DFunctionName(varyingType, samplerType, glslCaps->generation()), in appendTextureLookup()
DGrGLSL.h59 inline const char* GrGLSLTexture2DFunctionName(GrSLType coordType, GrSLType samplerType, in GrGLSLTexture2DFunctionName() argument
61 SkASSERT(GrSLTypeIsSamplerType(samplerType)); in GrGLSLTexture2DFunctionName()
73 return (samplerType == kSampler2DRect_GrSLType) ? "texture2DRect" : "texture2D"; in GrGLSLTexture2DFunctionName()
75 return (samplerType == kSampler2DRect_GrSLType) ? "texture2DRectProj" : "texture2DProj"; in GrGLSLTexture2DFunctionName()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktOpaqueTypeIndexingTests.cpp232 static TextureType getTextureType (glu::DataType samplerType) in getTextureType() argument
234 switch (samplerType) in getTextureType()
270 static bool isShadowSampler (glu::DataType samplerType) in isShadowSampler() argument
272 return samplerType == glu::TYPE_SAMPLER_1D_SHADOW || in isShadowSampler()
273 samplerType == glu::TYPE_SAMPLER_2D_SHADOW || in isShadowSampler()
274 samplerType == glu::TYPE_SAMPLER_2D_ARRAY_SHADOW || in isShadowSampler()
275 samplerType == glu::TYPE_SAMPLER_CUBE_SHADOW; in isShadowSampler()
278 static glu::DataType getSamplerOutputType (glu::DataType samplerType) in getSamplerOutputType() argument
280 switch (samplerType) in getSamplerOutputType()
314 static tcu::TextureFormat getSamplerTextureFormat (glu::DataType samplerType) in getSamplerTextureFormat() argument
[all …]
/external/deqp/modules/gles3/scripts/
Dgen-invalid-texture-funcs.py63 samplerType = self.args[0]
70 params = { "NAME": self.name, "SAMPLERTYPE": samplerType, "LOOKUP": lookup }
/external/deqp/modules/gles3/performance/
Des3pTextureCases.cpp101 const glu::DataType samplerType = glu::getSampler2DType(texFormat); in init() local
102 …const bool isIntUint = samplerType == glu::TYPE_INT_SAMPLER_2D || samplerType == glu::TYPE_UI… in init()
158 …" << glu::getPrecisionName(samplerPrec) << " " << glu::getDataTypeName(samplerType) << " u_sampler… in init()
/external/deqp/modules/gles3/functional/
Des3fFboTestUtil.hpp118 TextureCubeShader (glu::DataType samplerType, glu::DataType outputType);
140 Texture2DArrayShader (glu::DataType samplerType, glu::DataType outputType);
162 Texture3DShader (glu::DataType samplerType, glu::DataType outputType);
Des3fFboTestUtil.cpp422 TextureCubeShader::TextureCubeShader (glu::DataType samplerType, glu::DataType outputType) in TextureCubeShader() argument
429 << sglr::pdec::Uniform("u_sampler0", samplerType) in TextureCubeShader()
446 "uniform highp " + glu::getDataTypeName(samplerType) + " u_sampler0;\n" in TextureCubeShader()
560 Texture2DArrayShader::Texture2DArrayShader (glu::DataType samplerType, glu::DataType outputType) in Texture2DArrayShader() argument
566 << sglr::pdec::Uniform("u_sampler0", samplerType) in Texture2DArrayShader()
583 "uniform highp " + glu::getDataTypeName(samplerType) + " u_sampler0;\n" in Texture2DArrayShader()
668 Texture3DShader::Texture3DShader (glu::DataType samplerType, glu::DataType outputType) in Texture3DShader() argument
674 << sglr::pdec::Uniform("u_sampler0", samplerType) in Texture3DShader()
691 "uniform highp " + glu::getDataTypeName(samplerType) + " u_sampler0;\n" in Texture3DShader()
Des3fTextureFormatTests.cpp170 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in iterate()
355 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in testFace()
517 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in testLayer()
670 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in testSlice()
816 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in iterate()
967 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in testFace()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp90 GrSLType samplerType = get_sampler_type(processor.textureAccess(t)); in emitSamplers() local
91 localSamplerUniforms[t] = fUniformHandler.addUniform(kFragment_GrShaderFlag, samplerType, in emitSamplers()
94 if (kSamplerExternal_GrSLType == samplerType) { in emitSamplers()
/external/deqp/framework/randomshaders/
DrsgExpression.cpp1394 static int countSamplers (const VariableManager& varManager, VariableType::Type samplerType) in countSamplers() argument
1398 IsSamplerEntry::Iterator i = varManager.getBegin(IsSamplerEntry(samplerType)); in countSamplers()
1399 IsSamplerEntry::Iterator end = varManager.getEnd(IsSamplerEntry(samplerType)); in countSamplers()
1436 VariableType::Type samplerType = VariableType::TYPE_LAST; in TexLookup() local
1443 samplerType = VariableType::TYPE_SAMPLER_2D; in TexLookup()
1448 samplerType = VariableType::TYPE_SAMPLER_CUBE; in TexLookup()
1458 …bool hasSampler = samplerType == VariableType::TYPE_SAMPLER_2D ? (sampler2DCount > 0) : (sampler… in TexLookup()
1463 Variable* sampler = state.getVariableManager().allocate(VariableType(samplerType, 1)); in TexLookup()
1468 …andom().choose<const ValueEntry*>(state.getVariableManager().getBegin(IsSamplerEntry(samplerType)), in TexLookup()
1469 state.getVariableManager().getEnd(IsSamplerEntry(samplerType)))->getVariable(); in TexLookup()
/external/deqp/modules/gles2/functional/
Des2fShaderTextureFunctionTests.cpp429 glu::DataType samplerType = glu::TYPE_LAST; in initShaderSources() local
435 case TEXTURETYPE_2D: samplerType = glu::getSampler2DType(texFmt); break; in initShaderSources()
436 case TEXTURETYPE_CUBE_MAP: samplerType = glu::getSamplerCubeType(texFmt); break; in initShaderSources()
481 op << "uniform lowp " << glu::getDataTypeName(samplerType) << " u_sampler;\n"; in initShaderSources()
Des2fTextureFormatTests.cpp153 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in iterate()
324 renderParams.samplerType = getSamplerType(m_texture->getRefTexture().getFormat()); in testFace()
/external/deqp/modules/glshared/
DglsTextureTestUtil.hpp108 , samplerType (SAMPLERTYPE_FLOAT) in RenderParams()
119 SamplerType samplerType; //!< Sampler type. member
DglsTextureTestUtil.cpp383 if (params.samplerType == SAMPLERTYPE_SHADOW) in execSample()
391 if (params.samplerType == SAMPLERTYPE_SHADOW) in execSample()
399 if (params.samplerType == SAMPLERTYPE_SHADOW) in execSample()
407 if (params.samplerType == SAMPLERTYPE_SHADOW) in execSample()
415 if (params.samplerType == SAMPLERTYPE_SHADOW) in execSample()
423 if (params.samplerType == SAMPLERTYPE_SHADOW) in execSample()
1306 switch (params.samplerType) in renderQuad()
1319 switch (params.samplerType) in renderQuad()
1332 switch (params.samplerType) in renderQuad()
1345 switch (params.samplerType) in renderQuad()
[all …]

12