Home
last modified time | relevance | path

Searched refs:samplerName (Results 1 – 17 of 17) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_glslang_mtl_utils.mm76 std::string samplerName = originalName;
79 std::replace(samplerName.begin(), samplerName.end(), '.', '_');
82 auto out = samplerName.begin();
83 for (auto in = samplerName.begin(); in != samplerName.end(); in++)
90 ASSERT(in != samplerName.end());
99 samplerName.erase(out, samplerName.end());
103 samplerName = sh::kUserDefinedNamePrefix + samplerName;
106 return samplerName;
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteStructSamplers.cpp228 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()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fTextureUnitTests.cpp144 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()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cTextureBarrierTests.cpp430 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()
/third_party/mesa3d/src/mesa/program/
Dprog_to_nir.c565 char samplerName[20]; in ptn_tex() local
566 snprintf(samplerName, sizeof(samplerName), "sampler_%d", prog_inst->TexSrcUnit); in ptn_tex()
567 var = nir_variable_create(b->shader, nir_var_uniform, type, samplerName); in ptn_tex()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fOpaqueTypeIndexingTests.cpp549 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()
Des31fFboTestUtil.cpp190 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()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fTextureUnitTests.cpp213 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()
Des3fFboTestUtil.cpp347 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()
Des3fShaderTextureFunctionTests.cpp1968 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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Dglslang_wrapper_utils.cpp916 const std::string samplerName = GlslangGetMappedSamplerName(samplerUniform.name); in AssignTextureBindings() local
922 AddAndUpdateResourceMaps(shaderType, samplerName, in AssignTextureBindings()
4773 std::string samplerName = originalName; in GlslangGetMappedSamplerName() local
4776 std::replace(samplerName.begin(), samplerName.end(), '.', '_'); in GlslangGetMappedSamplerName()
4779 auto out = samplerName.begin(); in GlslangGetMappedSamplerName()
4780 for (auto in = samplerName.begin(); in != samplerName.end(); in++) in GlslangGetMappedSamplerName()
4787 ASSERT(in != samplerName.end()); in GlslangGetMappedSamplerName()
4796 samplerName.erase(out, samplerName.end()); in GlslangGetMappedSamplerName()
4800 samplerName = sh::kUserDefinedNamePrefix + samplerName; in GlslangGetMappedSamplerName()
4803 return samplerName; in GlslangGetMappedSamplerName()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DProgramExecutableVk.cpp690 const std::string samplerName = GlslangGetMappedSamplerName(samplerUniform.name); in addTextureDescriptorSetDesc() local
715 const ShaderInterfaceVariableInfo &info = mVariableInfoMap.get(shaderType, samplerName); in addTextureDescriptorSetDesc()
1763 const std::string samplerName = GlslangGetMappedSamplerName(samplerUniform.name); in updateTexturesDescriptorSet() local
1765 const ShaderInterfaceVariableInfo &info = mVariableInfoMap.get(shaderType, samplerName); in updateTexturesDescriptorSet()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderTextureFunctionTests.cpp4573 const char* samplerName; in init() member
4625 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4626 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4652 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4653 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4679 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4680 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4732 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4733 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4786 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRenderTextureFunctionTests.cpp4573 const char* samplerName; in init() member
4625 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4626 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4652 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4653 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4679 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4680 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4732 …se(m_testCtx, (std::string(caseSpec.name) + "_vertex"), "", caseSpec.samplerName, caseSpec.textu… in init()
4733 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
4786 …se(m_testCtx, (std::string(caseSpec.name) + "_fragment"), "", caseSpec.samplerName, caseSpec.textu… in init()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktOpaqueTypeIndexingTests.cpp2058 const char* samplerName = getDataTypeName(samplerType); in init() local
2059 const std::string caseName = de::toLower(samplerName); in init()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktOpaqueTypeIndexingTests.cpp2058 const char* samplerName = getDataTypeName(samplerType); in init() local
2059 const std::string caseName = de::toLower(samplerName); in init()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DContext.cpp1201 GLboolean Context::isSampler(SamplerID samplerName) const in isSampler()
1203 return mState.mSamplerManager->isSampler(samplerName); in isSampler()