Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DPipelineLayoutGL.cpp26 GLuint samplerIndex = 0; in PipelineLayout() local
57 mIndexInfo[group][bindingIndex] = samplerIndex; in PipelineLayout()
58 samplerIndex++; in PipelineLayout()
75 mNumSamplers = samplerIndex; in PipelineLayout()
H A DPipelineGL.cpp175 GLuint samplerIndex = indices[combined.samplerLocation.group][bindingIndex]; in InitializeBase() local
176 mUnitsForSamplers[samplerIndex].push_back({textureUnit, shouldUseFiltering}); in InitializeBase()
H A DCommandBufferGL.cpp284 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 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)
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 DContext.cpp3151 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 DProgram.h139 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 DvktRenderPassFragmentDensityMapTests.cpp1353 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 DvktRenderPassFragmentDensityMapTests.cpp1323 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 DProgramExecutable.cpp457 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 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()
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 DState.cpp3425 for (size_t samplerIndex : mDirtySamplers)
3427 BindingPointer<Sampler> &sampler = mSamplers[samplerIndex];
3616 void State::setSamplerDirty(size_t samplerIndex)
3619 mDirtySamplers.set(samplerIndex);
H A DProgram.h311 GLuint getUniformIndexFromSamplerIndex(GLuint samplerIndex) const;
H A DState.h740 void setSamplerDirty(size_t samplerIndex);
H A DContext.cpp430 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 DProgramD3D.cpp746 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 DProgramD3D.h187 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 DRenderer9.cpp3222 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 DvktBindingDescriptorBufferTests.cpp929 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 DvktBindingDescriptorBufferTests.cpp928 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 DStateManager11.cpp559 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 DStateManager11.h50 unsigned int samplerIndex,
/third_party/skia/third_party/externals/swiftshader/src/Shader/
H A DPixelProgram.hpp67 Vector4f sampleTexture(int samplerIndex, Vector4f &uvwq, Float4 &bias, Vector4f &dsx, Vector4f &dsy, Vector4f &offset, SamplerFunction function);
H A DPixelProgram.cpp782 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 DStateManagerGL.cpp2482 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 DProgramGL.cpp1090 GLuint samplerIndex = mState.getSamplerIndexFromUniformIndex(locationRef.index); in markUnusedUniformLocations() local
1091 gl::SamplerBinding &samplerBinding = (*samplerBindings)[samplerIndex]; in markUnusedUniformLocations()

Completed in 78 milliseconds