/external/angle/src/libANGLE/renderer/metal/ |
D | mtl_glslang_mtl_utils.mm | 75 std::string samplerName = originalName; 78 std::replace(samplerName.begin(), samplerName.end(), '.', '_'); 81 auto out = samplerName.begin(); 82 for (auto in = samplerName.begin(); in != samplerName.end(); in++) 89 ASSERT(in != samplerName.end()); 98 samplerName.erase(out, samplerName.end()); 102 samplerName = sh::kUserDefinedNamePrefix + samplerName; 105 return samplerName;
|
/external/angle/src/compiler/translator/tree_ops/ |
D | RewriteStructSamplers.cpp | 228 std::string samplerName; in RewriteModifiedStructFieldSelectionExpression() local 245 samplerName.insert(0, iter->getIndexStructFieldName().data()); in RewriteModifiedStructFieldSelectionExpression() 246 samplerName.insert(0, "_"); in RewriteModifiedStructFieldSelectionExpression() 253 samplerName.insert(0, baseUniform->variable().name().data()); in RewriteModifiedStructFieldSelectionExpression() 264 ASSERT(extractedSamplers.find(samplerName) != extractedSamplers.end()); in RewriteModifiedStructFieldSelectionExpression() 265 rewritten = new TIntermSymbol(extractedSamplers.at(samplerName)); in RewriteModifiedStructFieldSelectionExpression()
|
/external/webrtc/sdk/android/src/java/org/webrtc/ |
D | GlGenericDrawer.java | 116 final String samplerName = shaderType == ShaderType.OES ? "samplerExternalOES" : "sampler2D"; in createFragmentShaderString() local 117 stringBuilder.append("uniform ").append(samplerName).append(" tex;\n"); in createFragmentShaderString()
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cTextureBarrierTests.cpp | 430 GLchar samplerName[] = "texInput[0]"; in iterate() local 431 samplerName[9] = static_cast<GLchar>('0' + i); in iterate() 432 GLint loc = gl.getUniformLocation(m_program, samplerName); in iterate()
|
/external/deqp/modules/gles2/functional/ |
D | es2fTextureUnitTests.cpp | 144 string samplerName = "u_sampler" + ndxStr; in generateMultiTexFragmentShader() local 149 samplersStr += string("") + "uniform mediump " + samplerType + " " + samplerName + ";\n"; in generateMultiTexFragmentShader() 157 …lookupsStr += "\tcolor += " + colorMultiplier + "*" + lookupFunc + "(" + samplerName + ", " + look… in generateMultiTexFragmentShader() 184 string samplerName = "u_sampler" + de::toString(ndx); in generateShaderProgramDeclaration() local 187 …decl << sglr::pdec::Uniform(samplerName, (unitTypes[ndx] == GL_TEXTURE_2D) ? (glu::TYPE_SAMPLER_2D… in generateShaderProgramDeclaration()
|
/external/mesa3d/src/mesa/program/ |
D | prog_to_nir.c | 544 char samplerName[20]; in ptn_tex() local 545 snprintf(samplerName, sizeof(samplerName), "sampler_%d", prog_inst->TexSrcUnit); in ptn_tex() 546 var = nir_variable_create(b->shader, nir_var_uniform, type, samplerName); in ptn_tex()
|
/external/deqp/modules/gles31/functional/ |
D | es31fOpaqueTypeIndexingTests.cpp | 549 const string samplerName = string("sampler[") + de::toString(samplerNdx) + "]"; in iterate() local 550 const int samplerLoc = gl.getUniformLocation(executor->getProgram(), samplerName.c_str()); in iterate() 555 …TCU_CHECK_MSG(samplerLoc >= 0, (string("No location for uniform '") + samplerName + "' found").c_s… in iterate() 1335 const char* samplerName = getDataTypeName(samplerType); in init() local 1336 const string caseName = de::toLower(samplerName); in init()
|
D | es31fFboTestUtil.cpp | 190 string samplerName = string("u_sampler") + de::toString(texNdx); in setUniforms() local 194 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); in setUniforms()
|
/external/deqp/modules/gles3/functional/ |
D | es3fTextureUnitTests.cpp | 213 string samplerName = "u_sampler" + ndxStr; in generateMultiTexFragmentShader() local 218 …tring("") + "uniform highp " + glu::getDataTypeName(samplerTypes[ndx]) + " " + samplerName + ";\n"; in generateMultiTexFragmentShader() 230 …lookupsStr += "\tcolor += " + colorMultiplier + "*(vec4(texture(" + samplerName + ", " + lookupCoo… in generateMultiTexFragmentShader() 260 string samplerName = "u_sampler" + de::toString(ndx); in generateShaderProgramDeclaration() local 265 decl << sglr::pdec::Uniform(samplerName, samplerTypes[ndx]); in generateShaderProgramDeclaration()
|
D | es3fFboTestUtil.cpp | 347 string samplerName = string("u_sampler") + de::toString(texNdx); in setUniforms() local 351 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); in setUniforms()
|
D | es3fShaderTextureFunctionTests.cpp | 1968 const char* samplerName; in init() member 1998 …SizeCases[ndx].name) + "_vertex").c_str(), "", textureSizeCases[ndx].samplerName, textureSizeCas… in init() 1999 …SizeCases[ndx].name) + "_fragment").c_str(), "", textureSizeCases[ndx].samplerName, textureSizeCas… in init()
|
/external/angle/src/libANGLE/renderer/ |
D | glslang_wrapper_utils.cpp | 859 const std::string samplerName = GlslangGetMappedSamplerName(samplerUniform.name); in AssignTextureBindings() local 865 AddResourceInfo(variableInfoMapOut, shaderType, samplerName, in AssignTextureBindings() 4708 std::string samplerName = originalName; in GlslangGetMappedSamplerName() local 4711 std::replace(samplerName.begin(), samplerName.end(), '.', '_'); in GlslangGetMappedSamplerName() 4714 auto out = samplerName.begin(); in GlslangGetMappedSamplerName() 4715 for (auto in = samplerName.begin(); in != samplerName.end(); in++) in GlslangGetMappedSamplerName() 4722 ASSERT(in != samplerName.end()); in GlslangGetMappedSamplerName() 4731 samplerName.erase(out, samplerName.end()); in GlslangGetMappedSamplerName() 4735 samplerName = sh::kUserDefinedNamePrefix + samplerName; in GlslangGetMappedSamplerName() 4738 return samplerName; in GlslangGetMappedSamplerName()
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | ProgramExecutableVk.cpp | 670 const std::string samplerName = GlslangGetMappedSamplerName(samplerUniform.name); in addTextureDescriptorSetDesc() local 695 const ShaderInterfaceVariableInfo &info = mVariableInfoMap.get(shaderType, samplerName); in addTextureDescriptorSetDesc() 1750 const std::string samplerName = in updateTexturesDescriptorSet() local 1753 mVariableInfoMap.get(shaderType, samplerName); in updateTexturesDescriptorSet() 1803 const std::string samplerName = GlslangGetMappedSamplerName(samplerUniform.name); in updateTexturesDescriptorSet() local 1805 mVariableInfoMap.get(shaderType, samplerName); in updateTexturesDescriptorSet()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderTextureFunctionTests.cpp | 4469 const char* samplerName; in init() member 4521 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init() 4522 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init() 4548 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init() 4549 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init() 4575 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init() 4576 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init() 4628 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init() 4629 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init() 4682 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktOpaqueTypeIndexingTests.cpp | 2029 const char* samplerName = getDataTypeName(samplerType); in init() local 2030 const std::string caseName = de::toLower(samplerName); in init()
|
/external/angle/src/libANGLE/ |
D | Context.cpp | 1163 GLboolean Context::isSampler(SamplerID samplerName) const in isSampler() 1165 return mState.mSamplerManager->isSampler(samplerName); in isSampler()
|