/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
H A 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()
|
H A D | PipelineGL.cpp | 175 GLuint samplerIndex = indices[combined.samplerLocation.group][bindingIndex]; in InitializeBase() local 176 mUnitsForSamplers[samplerIndex].push_back({textureUnit, shouldUseFiltering}); in InitializeBase()
|
H A D | CommandBufferGL.cpp | 284 GLuint samplerIndex = indices[bindingIndex]; in ApplyBindGroup() local 287 mPipeline->GetTextureUnitsForSampler(samplerIndex)) { in ApplyBindGroup()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A 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) 330 ASSERT(samplerIndex < sizeof(samplersPS)/sizeof(samplersPS[0])); 331 ASSERT(samplersPS[samplerIndex] 2396 unsigned int samplerIndex = targetUniform->psRegisterIndex + i; applyUniform1iv() local 2410 unsigned int samplerIndex = targetUniform->vsRegisterIndex + i; applyUniform1iv() local 2498 unsigned int samplerIndex = targetUniform->psRegisterIndex + i; applyUniform1uiv() local 2512 unsigned int samplerIndex = targetUniform->vsRegisterIndex + i; applyUniform1uiv() local [all...] |
H A D | Context.cpp | 3151 for(int samplerIndex = 0; samplerIndex < samplerCount; samplerIndex++) in applyTextures() 3153 int textureUnit = programObject->getSamplerMapping(samplerType, samplerIndex); // OpenGL texture image unit index 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, es2s in applyTextures() [all...] |
H A 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/ |
H A D | vktRenderPassFragmentDensityMapTests.cpp | 1353 for (deUint32 samplerIndex = 0; samplerIndex < m_testParams.samplersCount; ++samplerIndex) in initPrograms() 1355 parameters["BINDING"] = std::to_string(samplerIndex); in initPrograms() 1651 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() 1848 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/ |
H A D | vktRenderPassFragmentDensityMapTests.cpp | 1323 for (deUint32 samplerIndex = 0; samplerIndex < m_testParams.samplersCount; ++samplerIndex) in initPrograms() 1325 parameters["BINDING"] = std::to_string(samplerIndex); in initPrograms() 1610 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() 1807 for (deUint32 samplerIndex = 0; samplerIndex < testParams.samplersCount; ++samplerIndex) in FragmentDensityMapTestInstance() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | ProgramExecutable.cpp | 457 for (size_t samplerIndex = 0; samplerIndex < samplerCount; ++samplerIndex) 776 for (uint32_t samplerIndex = 0; samplerIndex < samplerBindings.size(); ++samplerIndex) 778 const SamplerBinding &samplerBinding = samplerBindings[samplerIndex]; 779 uint32_t uniformIndex = programState.getUniformIndexFromSamplerIndex(samplerIndex);
|
H A 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() 3673 const auto &samplerUniform = mState.mExecutable->getUniforms()[samplerIndex]; in linkSamplerAndImageBindings() 3989 for (unsigned int samplerIndex : mState.mExecutable->getSamplerUniformRange()) in setUniformValuesFromBindingQualifiers() 3991 const auto &samplerUniform = mState.mExecutable->getUniforms()[samplerIndex]; in setUniformValuesFromBindingQualifiers() 4028 GLuint samplerIndex in updateSamplerUniform() local [all...] |
H A D | State.cpp | 3425 for (size_t samplerIndex : mDirtySamplers) 3427 BindingPointer<Sampler> &sampler = mSamplers[samplerIndex]; 3616 void State::setSamplerDirty(size_t samplerIndex) 3619 mDirtySamplers.set(samplerIndex);
|
H A D | Program.h | 311 GLuint getUniformIndexFromSamplerIndex(GLuint samplerIndex) const;
|
H A D | State.h | 740 void setSamplerDirty(size_t samplerIndex);
|
H A D | Context.cpp | 430 for (angle::SubjectIndex samplerIndex = kSampler0SubjectIndex; in Context() 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/ |
H A D | ProgramD3D.cpp | 746 unsigned int samplerIndex, in getSamplerMapping() 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 777 ASSERT(samplerIndex < samplers.size()); 778 ASSERT(samplers[samplerIndex].active); 780 return samplers[samplerIndex].textureType; 818 unsigned int samplerIndex local 745 getSamplerMapping(gl::ShaderType type, unsigned int samplerIndex, const gl::Caps &caps) const getSamplerMapping() argument [all...] |
H A 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/renderer/d3d/d3d9/ |
H A D | Renderer9.cpp | 3222 for (unsigned int samplerIndex = samplerRange.low(); samplerIndex < samplerRange.high(); in applyTextures() 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 in applyTextures() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
H A D | vktBindingDescriptorBufferTests.cpp | 929 deUint32 samplerIndex = INDEX_INVALID; 948 samplerIndex = 0; 958 ++samplerIndex; 963 samplerIndex = INDEX_INVALID; 998 DE_ASSERT(samplerIndex != INDEX_INVALID); 999 const auto& samplerSb = simpleBindings[samplerIndex]; 1447 deUint32 samplerIndex = 0; 1457 if (samplerIndex < m_params.samplerBufferBindingCount) 1465 ++samplerIndex; 1514 for (deUint32 samplerIndex [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/binding_model/ |
H A D | vktBindingDescriptorBufferTests.cpp | 928 deUint32 samplerIndex = INDEX_INVALID; 947 samplerIndex = 0; 957 ++samplerIndex; 962 samplerIndex = INDEX_INVALID; 997 DE_ASSERT(samplerIndex != INDEX_INVALID); 998 const auto& samplerSb = simpleBindings[samplerIndex]; 1447 deUint32 samplerIndex = 0; 1457 if (samplerIndex < m_params.samplerBufferBindingCount) 1465 ++samplerIndex; 1514 for (deUint32 samplerIndex [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | StateManager11.cpp | 559 unsigned int samplerIndex, 564 if (updateSamplerMetadata(&mShaderSamplerMetadata[shaderType][samplerIndex], texture, 2775 for (unsigned int samplerIndex = samplerRange.low(); samplerIndex < samplerRange.high(); 2776 samplerIndex++) 2778 GLint textureUnit = mProgramD3D->getSamplerMapping(shaderType, samplerIndex, caps); 2790 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, texture, samplerState)); 2792 setTextureForSampler(context, shaderType, samplerIndex, texture, samplerState)); 2797 mProgramD3D->getSamplerTextureType(shaderType, samplerIndex); 2803 ANGLE_TRY(setSamplerState(context, shaderType, samplerIndex, incompleteTextur [all...] |
H A D | StateManager11.h | 50 unsigned int samplerIndex,
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | PixelProgram.hpp | 67 Vector4f sampleTexture(int samplerIndex, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &dsy, Vector4f &offset, SamplerFunction function);
|
H A D | PixelProgram.cpp | 782 Vector4f PixelProgram::sampleTexture(int samplerIndex, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &dsy, Vector4f &offset, SamplerFunction function) 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, uvwq.y, uvwq.z, uvwq.w, bias, dsx, dsy, offset, function); in sampleTexture()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | StateManagerGL.cpp | 2482 for (size_t samplerIndex = 0; samplerIndex < samplers.size(); ++samplerIndex) 2484 const gl::Sampler *sampler = samplers[samplerIndex].get(); 2488 bindSampler(samplerIndex, samplerGL->getSamplerID()); 2492 bindSampler(samplerIndex, 0);
|
H A D | ProgramGL.cpp | 1090 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(locationRef.index); in markUnusedUniformLocations() local 1091 gl::SamplerBinding &samplerBinding = (*samplerBindings)[samplerIndex]; in markUnusedUniformLocations()
|