/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | PipelineLayoutGL.cpp | 26 GLuint samplerIndex = 0; in PipelineLayout() local 44 mIndexInfo[group][binding] = samplerIndex; in PipelineLayout() 45 samplerIndex++; in PipelineLayout() 67 mNumSamplers = samplerIndex; in PipelineLayout()
|
D | PipelineGL.cpp | 166 GLuint samplerIndex = in Initialize() local 168 mUnitsForSamplers[samplerIndex].push_back(textureUnit); in Initialize()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | PipelineLayoutGL.cpp | 26 GLuint samplerIndex = 0; in PipelineLayout() local 57 mIndexInfo[group][bindingIndex] = samplerIndex; in PipelineLayout() 58 samplerIndex++; in PipelineLayout() 75 mNumSamplers = samplerIndex; in PipelineLayout()
|
D | PipelineGL.cpp | 175 GLuint samplerIndex = indices[combined.samplerLocation.group][bindingIndex]; in InitializeBase() local 176 mUnitsForSamplers[samplerIndex].push_back({textureUnit, shouldUseFiltering}); in InitializeBase()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
D | Program.cpp | 291 GLint Program::getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex) in getSamplerMapping() argument 298 ASSERT(samplerIndex < sizeof(samplersPS) / sizeof(samplersPS[0])); in getSamplerMapping() 300 if(samplersPS[samplerIndex].active) in getSamplerMapping() 302 logicalTextureUnit = samplersPS[samplerIndex].logicalTextureUnit; in getSamplerMapping() 306 ASSERT(samplerIndex < sizeof(samplersVS) / sizeof(samplersVS[0])); in getSamplerMapping() 308 if(samplersVS[samplerIndex].active) in getSamplerMapping() 310 logicalTextureUnit = samplersVS[samplerIndex].logicalTextureUnit; in getSamplerMapping() 325 TextureType Program::getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex) in getSamplerTextureType() argument 330 ASSERT(samplerIndex < sizeof(samplersPS)/sizeof(samplersPS[0])); in getSamplerTextureType() 331 ASSERT(samplersPS[samplerIndex].active); in getSamplerTextureType() [all …]
|
D | Context.cpp | 3151 for(int samplerIndex = 0; samplerIndex < samplerCount; samplerIndex++) in applyTextures() local 3153 …int textureUnit = programObject->getSamplerMapping(samplerType, samplerIndex); // OpenGL texture… in applyTextures() 3157 TextureType textureType = programObject->getSamplerTextureType(samplerType, samplerIndex); in applyTextures() 3201 device->setAddressingModeU(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapS)); in applyTextures() 3202 device->setAddressingModeV(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapT)); in applyTextures() 3203 device->setAddressingModeW(samplerType, samplerIndex, es2sw::ConvertTextureWrap(wrapR)); in applyTextures() 3204 … device->setCompareFunc(samplerType, samplerIndex, es2sw::ConvertCompareFunc(compFunc, compMode)); in applyTextures() 3205 device->setSwizzleR(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleR)); in applyTextures() 3206 device->setSwizzleG(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleG)); in applyTextures() 3207 device->setSwizzleB(samplerType, samplerIndex, es2sw::ConvertSwizzleType(swizzleB)); in applyTextures() [all …]
|
D | Program.h | 139 GLint getSamplerMapping(sw::SamplerType type, unsigned int samplerIndex); 140 TextureType getSamplerTextureType(sw::SamplerType type, unsigned int samplerIndex);
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | PipelineLayoutMTL.mm | 29 uint32_t samplerIndex = 0; 49 mIndexInfo[stage][group][binding] = samplerIndex; 50 samplerIndex++;
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | PipelineLayoutMTL.mm | 34 uint32_t samplerIndex = 0; 55 mIndexInfo[stage][group][bindingIndex] = samplerIndex; 56 samplerIndex++;
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | ProgramD3D.cpp | 718 unsigned int samplerIndex, in getSamplerMapping() argument 725 ASSERT(samplerIndex < caps.maxShaderTextureImageUnits[type]); in getSamplerMapping() 728 if (samplerIndex < samplers.size() && samplers[samplerIndex].active) in getSamplerMapping() 730 logicalTextureUnit = samplers[samplerIndex].logicalTextureUnit; in getSamplerMapping() 745 unsigned int samplerIndex) const in getSamplerTextureType() 750 ASSERT(samplerIndex < samplers.size()); in getSamplerTextureType() 751 ASSERT(samplers[samplerIndex].active); in getSamplerTextureType() 753 return samplers[samplerIndex].textureType; in getSamplerTextureType() 791 unsigned int samplerIndex = firstIndex + i; in updateSamplerMapping() local 793 if (samplerIndex < samplers.size()) in updateSamplerMapping() [all …]
|
D | ProgramD3D.h | 165 unsigned int samplerIndex, 167 gl::TextureType getSamplerTextureType(gl::ShaderType type, unsigned int samplerIndex) const;
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | ProgramD3D.cpp | 746 unsigned int samplerIndex, in getSamplerMapping() argument 753 ASSERT(samplerIndex < static_cast<unsigned int>(caps.maxShaderTextureImageUnits[type])); in getSamplerMapping() 756 if (samplerIndex < samplers.size() && samplers[samplerIndex].active) in getSamplerMapping() 758 logicalTextureUnit = samplers[samplerIndex].logicalTextureUnit; in getSamplerMapping() 772 unsigned int samplerIndex) const in getSamplerTextureType() 777 ASSERT(samplerIndex < samplers.size()); in getSamplerTextureType() 778 ASSERT(samplers[samplerIndex].active); in getSamplerTextureType() 780 return samplers[samplerIndex].textureType; in getSamplerTextureType() 818 unsigned int samplerIndex = firstIndex + i; in updateSamplerMapping() local 820 if (samplerIndex < samplers.size()) in updateSamplerMapping() [all …]
|
D | ProgramD3D.h | 187 unsigned int samplerIndex, 189 gl::TextureType getSamplerTextureType(gl::ShaderType type, unsigned int samplerIndex) const;
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/ |
D | vktRenderPassFragmentDensityMapTests.cpp | 1323 for (deUint32 samplerIndex = 0; samplerIndex < m_testParams.samplersCount; ++samplerIndex) in initPrograms() local 1325 parameters["BINDING"] = std::to_string(samplerIndex); in initPrograms() 1610 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1807 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1809 …YPE_COMBINED_IMAGE_SAMPLER, VK_SHADER_STAGE_FRAGMENT_BIT, &(*m_colorSamplers[samplerIndex]).get()); in FragmentDensityMapTestInstance() 1810 descriptorPoolBuilder.addType(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, samplerIndex + 1u); in FragmentDensityMapTestInstance() 1832 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1833 …tOutputSubsampledImage, DescriptorSetUpdateBuilder::Location::binding(samplerIndex), VK_DESCRIPTOR… in FragmentDensityMapTestInstance()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassFragmentDensityMapTests.cpp | 1323 for (deUint32 samplerIndex = 0; samplerIndex < m_testParams.samplersCount; ++samplerIndex) in initPrograms() local 1325 parameters["BINDING"] = std::to_string(samplerIndex); in initPrograms() 1610 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1807 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1809 …YPE_COMBINED_IMAGE_SAMPLER, VK_SHADER_STAGE_FRAGMENT_BIT, &(*m_colorSamplers[samplerIndex]).get()); in FragmentDensityMapTestInstance() 1810 descriptorPoolBuilder.addType(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, samplerIndex + 1u); in FragmentDensityMapTestInstance() 1832 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1833 …tOutputSubsampledImage, DescriptorSetUpdateBuilder::Location::binding(samplerIndex), VK_DESCRIPTOR… in FragmentDensityMapTestInstance()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | ProgramExecutable.cpp | 457 for (size_t samplerIndex = 0; samplerIndex < samplerCount; ++samplerIndex) in load() local 776 for (uint32_t samplerIndex = 0; samplerIndex < samplerBindings.size(); ++samplerIndex) in updateActiveSamplers() local 778 const SamplerBinding &samplerBinding = samplerBindings[samplerIndex]; in updateActiveSamplers() 779 uint32_t uniformIndex = programState.getUniformIndexFromSamplerIndex(samplerIndex); in updateActiveSamplers()
|
D | Program.cpp | 1292 GLuint ProgramState::getUniformIndexFromSamplerIndex(GLuint samplerIndex) const in getUniformIndexFromSamplerIndex() 1294 ASSERT(samplerIndex < mExecutable->mSamplerUniformRange.length()); in getUniformIndexFromSamplerIndex() 1295 return samplerIndex + mExecutable->mSamplerUniformRange.low(); in getUniformIndexFromSamplerIndex() 2927 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(uniformLocation.index); in getSamplerUniformBinding() local 2929 mState.mExecutable->mSamplerBindings[samplerIndex].boundTextureUnits; in getSamplerUniformBinding() 3671 for (unsigned int samplerIndex : mState.mExecutable->getSamplerUniformRange()) in linkSamplerAndImageBindings() local 3673 const auto &samplerUniform = mState.mExecutable->getUniforms()[samplerIndex]; in linkSamplerAndImageBindings() 3989 for (unsigned int samplerIndex : mState.mExecutable->getSamplerUniformRange()) in setUniformValuesFromBindingQualifiers() local 3991 const auto &samplerUniform = mState.mExecutable->getUniforms()[samplerIndex]; in setUniformValuesFromBindingQualifiers() 4028 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(locationInfo.index); in updateSamplerUniform() local [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | Renderer9.cpp | 3222 for (unsigned int samplerIndex = samplerRange.low(); samplerIndex < samplerRange.high(); in applyTextures() local 3223 samplerIndex++) in applyTextures() 3225 GLint textureUnit = programD3D->getSamplerMapping(shaderType, samplerIndex, caps); in applyTextures() 3237 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, texture, samplerState)); in applyTextures() 3238 ANGLE_TRY(setTexture(context, shaderType, samplerIndex, texture)); in applyTextures() 3243 programD3D->getSamplerTextureType(shaderType, samplerIndex); in applyTextures() 3249 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, incompleteTexture, in applyTextures() 3251 ANGLE_TRY(setTexture(context, shaderType, samplerIndex, incompleteTexture)); in applyTextures() 3261 for (int samplerIndex = samplerRange.high(); samplerIndex < samplerCount; samplerIndex++) in applyTextures() local 3263 ANGLE_TRY(setTexture(context, shaderType, samplerIndex, nullptr)); in applyTextures()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
D | Renderer9.cpp | 3168 for (unsigned int samplerIndex = samplerRange.low(); samplerIndex < samplerRange.high(); in applyTextures() local 3169 samplerIndex++) in applyTextures() 3171 GLint textureUnit = programD3D->getSamplerMapping(shaderType, samplerIndex, caps); in applyTextures() 3183 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, texture, samplerState)); in applyTextures() 3184 ANGLE_TRY(setTexture(context, shaderType, samplerIndex, texture)); in applyTextures() 3189 programD3D->getSamplerTextureType(shaderType, samplerIndex); in applyTextures() 3195 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, incompleteTexture, in applyTextures() 3197 ANGLE_TRY(setTexture(context, shaderType, samplerIndex, incompleteTexture)); in applyTextures() 3207 for (size_t samplerIndex = samplerRange.high(); samplerIndex < samplerCount; samplerIndex++) in applyTextures() local 3209 ANGLE_TRY(setTexture(context, shaderType, static_cast<int>(samplerIndex), nullptr)); in applyTextures()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/binding_model/ |
D | vktBindingDescriptorBufferTests.cpp | 928 deUint32 samplerIndex = INDEX_INVALID; in glslOutputVerification() local 947 samplerIndex = 0; in glslOutputVerification() 957 ++samplerIndex; in glslOutputVerification() 962 samplerIndex = INDEX_INVALID; in glslOutputVerification() 997 DE_ASSERT(samplerIndex != INDEX_INVALID); in glslOutputVerification() 998 const auto& samplerSb = simpleBindings[samplerIndex]; in glslOutputVerification() 1447 deUint32 samplerIndex = 0; in delayedInit() local 1457 if (samplerIndex < m_params.samplerBufferBindingCount) in delayedInit() 1465 ++samplerIndex; in delayedInit() 1514 …for (deUint32 samplerIndex = 0; samplerIndex < m_params.embeddedImmutableSamplersPerBuffer; ++samp… in delayedInit() local [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingDescriptorBufferTests.cpp | 928 deUint32 samplerIndex = INDEX_INVALID; in glslOutputVerification() local 947 samplerIndex = 0; in glslOutputVerification() 957 ++samplerIndex; in glslOutputVerification() 962 samplerIndex = INDEX_INVALID; in glslOutputVerification() 997 DE_ASSERT(samplerIndex != INDEX_INVALID); in glslOutputVerification() 998 const auto& samplerSb = simpleBindings[samplerIndex]; in glslOutputVerification() 1447 deUint32 samplerIndex = 0; in delayedInit() local 1457 if (samplerIndex < m_params.samplerBufferBindingCount) in delayedInit() 1465 ++samplerIndex; in delayedInit() 1514 …for (deUint32 samplerIndex = 0; samplerIndex < m_params.embeddedImmutableSamplersPerBuffer; ++samp… in delayedInit() local [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/ |
D | Program.cpp | 1072 GLuint ProgramState::getUniformIndexFromSamplerIndex(GLuint samplerIndex) const in getUniformIndexFromSamplerIndex() 1074 ASSERT(samplerIndex < mSamplerUniformRange.length()); in getUniformIndexFromSamplerIndex() 1075 return samplerIndex + mSamplerUniformRange.low(); in getUniformIndexFromSamplerIndex() 2462 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(uniformLocation.index); in getSamplerUniformBinding() local 2464 mState.mSamplerBindings[samplerIndex].boundTextureUnits; in getSamplerUniformBinding() 3183 for (unsigned int samplerIndex : mState.mSamplerUniformRange) in linkSamplerAndImageBindings() local 3185 const auto &samplerUniform = mState.mUniforms[samplerIndex]; in linkSamplerAndImageBindings() 4280 for (unsigned int samplerIndex : mState.mSamplerUniformRange) in setUniformValuesFromBindingQualifiers() local 4282 const auto &samplerUniform = mState.mUniforms[samplerIndex]; in setUniformValuesFromBindingQualifiers() 4318 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(locationInfo.index); in updateSamplerUniform() local [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | StateManagerGL.cpp | 2081 for (size_t samplerIndex = 0; samplerIndex < samplers.size(); ++samplerIndex) in syncSamplersState() local 2083 const gl::Sampler *sampler = samplers[samplerIndex].get(); in syncSamplersState() 2087 bindSampler(samplerIndex, samplerGL->getSamplerID()); in syncSamplersState() 2091 bindSampler(samplerIndex, 0); in syncSamplersState()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | StateManager11.cpp | 559 unsigned int samplerIndex, in onSamplerChange() argument 564 if (updateSamplerMetadata(&mShaderSamplerMetadata[shaderType][samplerIndex], texture, in onSamplerChange() 2775 for (unsigned int samplerIndex = samplerRange.low(); samplerIndex < samplerRange.high(); in applyTexturesForSRVs() local 2776 samplerIndex++) in applyTexturesForSRVs() 2778 GLint textureUnit = mProgramD3D->getSamplerMapping(shaderType, samplerIndex, caps); in applyTexturesForSRVs() 2790 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, texture, samplerState)); in applyTexturesForSRVs() 2792 setTextureForSampler(context, shaderType, samplerIndex, texture, samplerState)); in applyTexturesForSRVs() 2797 mProgramD3D->getSamplerTextureType(shaderType, samplerIndex); in applyTexturesForSRVs() 2803 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, incompleteTexture, in applyTexturesForSRVs() 2805 ANGLE_TRY(setTextureForSampler(context, shaderType, samplerIndex, incompleteTexture, in applyTexturesForSRVs()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | StateManager11.cpp | 555 unsigned int samplerIndex, in onSamplerChange() argument 560 if (updateSamplerMetadata(&mShaderSamplerMetadata[shaderType][samplerIndex], texture, in onSamplerChange() 2710 for (unsigned int samplerIndex = samplerRange.low(); samplerIndex < samplerRange.high(); in applyTexturesForSRVs() local 2711 samplerIndex++) in applyTexturesForSRVs() 2713 GLint textureUnit = mProgramD3D->getSamplerMapping(shaderType, samplerIndex, caps); in applyTexturesForSRVs() 2725 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, texture, samplerState)); in applyTexturesForSRVs() 2727 setTextureForSampler(context, shaderType, samplerIndex, texture, samplerState)); in applyTexturesForSRVs() 2732 mProgramD3D->getSamplerTextureType(shaderType, samplerIndex); in applyTexturesForSRVs() 2738 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, incompleteTexture, in applyTexturesForSRVs() 2740 ANGLE_TRY(setTextureForSampler(context, shaderType, samplerIndex, incompleteTexture, in applyTexturesForSRVs()
|