Home
last modified time | relevance | path

Searched refs:samplerIndex (Results 1 – 25 of 43) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DPipelineLayoutGL.cpp26 GLuint samplerIndex = 0; in PipelineLayout() local
44 mIndexInfo[group][binding] = samplerIndex; in PipelineLayout()
45 samplerIndex++; in PipelineLayout()
67 mNumSamplers = samplerIndex; in PipelineLayout()
DPipelineGL.cpp166 GLuint samplerIndex = in Initialize() local
168 mUnitsForSamplers[samplerIndex].push_back(textureUnit); in Initialize()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DPipelineLayoutGL.cpp26 GLuint samplerIndex = 0; in PipelineLayout() local
57 mIndexInfo[group][bindingIndex] = samplerIndex; in PipelineLayout()
58 samplerIndex++; in PipelineLayout()
75 mNumSamplers = samplerIndex; in PipelineLayout()
DPipelineGL.cpp175 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/
DProgram.cpp291 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 …]
DContext.cpp3151 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 …]
DProgram.h139 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/
DPipelineLayoutMTL.mm29 uint32_t samplerIndex = 0;
49 mIndexInfo[stage][group][binding] = samplerIndex;
50 samplerIndex++;
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DPipelineLayoutMTL.mm34 uint32_t samplerIndex = 0;
55 mIndexInfo[stage][group][bindingIndex] = samplerIndex;
56 samplerIndex++;
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DProgramD3D.cpp718 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 …]
DProgramD3D.h165 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/
DProgramD3D.cpp746 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 …]
DProgramD3D.h187 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/
DvktRenderPassFragmentDensityMapTests.cpp1323 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/
DvktRenderPassFragmentDensityMapTests.cpp1323 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/
DProgramExecutable.cpp457 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()
DProgram.cpp1292 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/
DRenderer9.cpp3222 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/
DRenderer9.cpp3168 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/
DvktBindingDescriptorBufferTests.cpp928 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/
DvktBindingDescriptorBufferTests.cpp928 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/
DProgram.cpp1072 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/
DStateManagerGL.cpp2081 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/
DStateManager11.cpp559 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/
DStateManager11.cpp555 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()

12