/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()
|
D | CommandBufferGL.cpp | 284 GLuint samplerIndex = indices[bindingIndex]; in ApplyBindGroup() local 287 mPipeline->GetTextureUnitsForSampler(samplerIndex)) { in ApplyBindGroup()
|
/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/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/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassFragmentDensityMapTests.cpp | 1288 for (deUint32 samplerIndex = 0; samplerIndex < m_testParams.samplersCount; ++samplerIndex) in initPrograms() local 1290 parameters["BINDING"] = std::to_string(samplerIndex); in initPrograms() 1574 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1675 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1677 …YPE_COMBINED_IMAGE_SAMPLER, VK_SHADER_STAGE_FRAGMENT_BIT, &(*m_colorSamplers[samplerIndex]).get()); in FragmentDensityMapTestInstance() 1678 descriptorPoolBuilder.addType(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, samplerIndex + 1u); in FragmentDensityMapTestInstance() 1700 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() local 1701 …tOutputSubsampledImage, DescriptorSetUpdateBuilder::Location::binding(samplerIndex), VK_DESCRIPTOR… in FragmentDensityMapTestInstance()
|
/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/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 …]
|
D | State.cpp | 3420 for (size_t samplerIndex : mDirtySamplers) in syncSamplers() local 3422 BindingPointer<Sampler> &sampler = mSamplers[samplerIndex]; in syncSamplers() 3611 void State::setSamplerDirty(size_t samplerIndex) in setSamplerDirty() argument 3614 mDirtySamplers.set(samplerIndex); in setSamplerDirty()
|
D | Program.h | 311 GLuint getUniformIndexFromSamplerIndex(GLuint samplerIndex) const;
|
D | State.h | 740 void setSamplerDirty(size_t samplerIndex);
|
D | Context.cpp | 430 for (angle::SubjectIndex samplerIndex = kSampler0SubjectIndex; in Context() local 431 samplerIndex < kSamplerMaxSubjectIndex; ++samplerIndex) in Context() 433 mSamplerObserverBindings.emplace_back(this, samplerIndex); in Context()
|
/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/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()
|
D | StateManager11.h | 50 unsigned int samplerIndex,
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
D | PixelProgram.hpp | 67 …Vector4f sampleTexture(int samplerIndex, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &ds…
|
D | PixelProgram.cpp | 782 …Vector4f PixelProgram::sampleTexture(int samplerIndex, Vector4f &uvwq, Float4 &bias, Vector4f &dsx… in sampleTexture() argument 788 Pointer<Byte> texture = data + OFFSET(DrawData, mipmap) + samplerIndex * sizeof(Texture); in sampleTexture() 789 …Vector4f c = SamplerCore(constants, state.sampler[samplerIndex]).sampleTexture(texture, uvwq.x, uv… in sampleTexture()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | StateManagerGL.cpp | 2482 for (size_t samplerIndex = 0; samplerIndex < samplers.size(); ++samplerIndex) in syncSamplersState() local 2484 const gl::Sampler *sampler = samplers[samplerIndex].get(); in syncSamplersState() 2488 bindSampler(samplerIndex, samplerGL->getSamplerID()); in syncSamplersState() 2492 bindSampler(samplerIndex, 0); in syncSamplersState()
|
D | ProgramGL.cpp | 1090 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(locationRef.index); in markUnusedUniformLocations() local 1091 gl::SamplerBinding &samplerBinding = (*samplerBindings)[samplerIndex]; in markUnusedUniformLocations()
|