/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | PipelineGL.cpp | 143 GLuint textureUnit = layout->GetTextureUnitsUsed(); in InitializeBase() local 152 gl.Uniform1i(location, textureUnit); in InitializeBase() 161 mUnitsForTextures[textureIndex].push_back(textureUnit); in InitializeBase() 168 mDummySamplerUnits.push_back(textureUnit); in InitializeBase() 176 mUnitsForSamplers[samplerIndex].push_back({textureUnit, shouldUseFiltering}); in InitializeBase() 180 textureUnit++; in InitializeBase()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | PipelineGL.cpp | 160 GLuint textureUnit = layout->GetTextureUnitsUsed(); in Initialize() local 164 gl.Uniform1i(location, textureUnit); in Initialize() 168 mUnitsForSamplers[samplerIndex].push_back(textureUnit); in Initialize() 172 mUnitsForTextures[textureIndex].push_back(textureUnit); in Initialize() 174 textureUnit++; in Initialize()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | ProgramExecutable.cpp | 782 for (GLint textureUnit : samplerBinding.boundTextureUnits) in updateActiveSamplers() local 784 if (++mActiveSamplerRefCounts[textureUnit] == 1) in updateActiveSamplers() 786 mActiveSamplerTypes[textureUnit] = samplerBinding.textureType; in updateActiveSamplers() 787 mActiveSamplerYUV[textureUnit] = IsSamplerYUVType(samplerBinding.samplerType); in updateActiveSamplers() 788 mActiveSamplerFormats[textureUnit] = samplerBinding.format; in updateActiveSamplers() 789 mActiveSamplerShaderBits[textureUnit] = samplerUniform.activeShaders(); in updateActiveSamplers() 793 if (mActiveSamplerTypes[textureUnit] != samplerBinding.textureType) in updateActiveSamplers() 796 mActiveSamplerTypes[textureUnit] = TextureType::InvalidEnum; in updateActiveSamplers() 798 if (mActiveSamplerYUV.test(textureUnit) != in updateActiveSamplers() 801 mActiveSamplerYUV[textureUnit] = false; in updateActiveSamplers() [all …]
|
D | Stream.cpp | 42 plane.textureUnit = -1; in Stream() 148 mPlanes[i].textureUnit = attributes.getAsInt(EGL_YUV_PLANE0_TEXTURE_UNIT_NV + i, -1); in createConsumerGLTextureExternal() 149 if (mPlanes[i].textureUnit != EGL_NONE) in createConsumerGLTextureExternal() 152 glState.getSamplerTexture(mPlanes[i].textureUnit, gl::TextureType::External); in createConsumerGLTextureExternal() 160 if (mPlanes[i].textureUnit != EGL_NONE) in createConsumerGLTextureExternal()
|
D | State.cpp | 1705 for (size_t textureUnit = 0; textureUnit < mSamplerTextures[type].size(); ++textureUnit) in initializeZeroTextures() local 1707 mSamplerTextures[type][textureUnit].set(context, zeroTextures[type].get()); in initializeZeroTextures() 1717 void State::setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler) in setSamplerBinding() argument 1719 if (mSamplers[textureUnit].get() == sampler) in setSamplerBinding() 1724 mSamplers[textureUnit].set(context, sampler); in setSamplerBinding() 1727 setSamplerDirty(textureUnit); in setSamplerBinding() 1728 onActiveTextureChange(context, textureUnit); in setSamplerBinding() 3299 for (size_t textureUnit : mDirtyActiveTextures) in syncActiveTextures() local 3303 TextureType type = mExecutable->getActiveSamplerTypes()[textureUnit]; in syncActiveTextures() 3305 ? getTextureForActiveSampler(type, textureUnit) in syncActiveTextures() [all …]
|
D | State.h | 322 void setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler); 323 SamplerID getSamplerId(GLuint textureUnit) const in getSamplerId() argument 325 ASSERT(textureUnit < mSamplers.size()); in getSamplerId() 326 return mSamplers[textureUnit].id(); in getSamplerId() 329 Sampler *getSampler(GLuint textureUnit) const { return mSamplers[textureUnit].get(); } in getSampler() argument 772 void onActiveTextureChange(const Context *context, size_t textureUnit); 775 void onActiveTextureStateChange(const Context *context, size_t textureUnit);
|
D | Stream.h | 133 EGLint textureUnit; member
|
D | GLES1Shaders.inc | 112 vec4 drawTextureTexCoord(int vertexId, int textureUnit) 114 float texCropU = draw_texture_normalized_crop_rect[textureUnit].x; 115 float texCropV = draw_texture_normalized_crop_rect[textureUnit].y; 116 float texCropW = draw_texture_normalized_crop_rect[textureUnit].z; 117 float texCropH = draw_texture_normalized_crop_rect[textureUnit].w;
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/ |
D | Stream.cpp | 42 plane.textureUnit = -1; in Stream() 148 mPlanes[i].textureUnit = attributes.getAsInt(EGL_YUV_PLANE0_TEXTURE_UNIT_NV + i, -1); in createConsumerGLTextureExternal() 149 if (mPlanes[i].textureUnit != EGL_NONE) in createConsumerGLTextureExternal() 152 glState.getSamplerTexture(mPlanes[i].textureUnit, gl::TextureType::External); in createConsumerGLTextureExternal() 160 if (mPlanes[i].textureUnit != EGL_NONE) in createConsumerGLTextureExternal()
|
D | State.h | 240 void setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler); 241 GLuint getSamplerId(GLuint textureUnit) const in getSamplerId() argument 243 ASSERT(textureUnit < mSamplers.size()); in getSamplerId() 244 return mSamplers[textureUnit].id(); in getSamplerId() 247 Sampler *getSampler(GLuint textureUnit) const { return mSamplers[textureUnit].get(); } in getSampler() argument 639 void onActiveTextureChange(const Context *context, size_t textureUnit); 642 void onActiveTextureStateChange(const Context *context, size_t textureUnit);
|
D | State.cpp | 1230 for (size_t textureUnit = 0; textureUnit < mSamplerTextures[type].size(); ++textureUnit) in initializeZeroTextures() local 1232 mSamplerTextures[type][textureUnit].set(context, zeroTextures[type].get()); in initializeZeroTextures() 1242 void State::setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler) in setSamplerBinding() argument 1244 mSamplers[textureUnit].set(context, sampler); in setSamplerBinding() 1247 setSamplerDirty(textureUnit); in setSamplerBinding() 1248 onActiveTextureChange(context, textureUnit); in setSamplerBinding() 1249 onActiveTextureStateChange(context, textureUnit); in setSamplerBinding() 2852 void State::onActiveTextureChange(const Context *context, size_t textureUnit) in onActiveTextureChange() argument 2856 TextureType type = mProgram->getActiveSamplerTypes()[textureUnit]; in onActiveTextureChange() 2859 Texture *activeTexture = mSamplerTextures[type][textureUnit].get(); in onActiveTextureChange() [all …]
|
D | Stream.h | 133 EGLint textureUnit; member
|
D | GLES1Shaders.inc | 78 vec4 drawTextureTexCoord(int vertexId, int textureUnit) 80 float texCropU = draw_texture_normalized_crop_rect[textureUnit].x; 81 float texCropV = draw_texture_normalized_crop_rect[textureUnit].y; 82 float texCropW = draw_texture_normalized_crop_rect[textureUnit].z; 83 float texCropH = draw_texture_normalized_crop_rect[textureUnit].w;
|
D | Program.cpp | 1599 for (GLint textureUnit : samplerBinding.boundTextureUnits) in updateActiveSamplers() local 1601 if (++mActiveSamplerRefCounts[textureUnit] == 1) in updateActiveSamplers() 1603 mActiveSamplerTypes[textureUnit] = samplerBinding.textureType; in updateActiveSamplers() 1604 mActiveSamplerFormats[textureUnit] = samplerBinding.format; in updateActiveSamplers() 1608 if (mActiveSamplerTypes[textureUnit] != samplerBinding.textureType) in updateActiveSamplers() 1610 mActiveSamplerTypes[textureUnit] = TextureType::InvalidEnum; in updateActiveSamplers() 1612 if (mActiveSamplerFormats[textureUnit] != samplerBinding.format) in updateActiveSamplers() 1614 mActiveSamplerFormats[textureUnit] = SamplerFormat::InvalidEnum; in updateActiveSamplers() 1617 mActiveSamplersMask.set(textureUnit); in updateActiveSamplers() 2571 for (size_t textureUnit : mState.mActiveSamplersMask) in validateSamplersImpl() local [all …]
|
/third_party/mesa3d/src/mesa/swrast/ |
D | s_texcombine.c | 87 const struct gl_fixedfunc_texture_unit *textureUnit = in texture_combine() local 89 const struct gl_tex_env_combine_state *combine = textureUnit->_CurrentCombine; in texture_combine() 158 GLfloat red = textureUnit->EnvColor[0]; in texture_combine() 159 GLfloat green = textureUnit->EnvColor[1]; in texture_combine() 160 GLfloat blue = textureUnit->EnvColor[2]; in texture_combine() 161 GLfloat alpha = textureUnit->EnvColor[3]; in texture_combine() 254 GLfloat alpha = textureUnit->EnvColor[3]; in texture_combine() 322 if (textureUnit->EnvMode == GL_COMBINE4_NV) { in texture_combine() 343 if (textureUnit->EnvMode == GL_COMBINE4_NV) { in texture_combine() 457 if (textureUnit->EnvMode == GL_COMBINE4_NV) { in texture_combine() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | GLSLTest.cpp | 4626 int textureUnit = i * 2 + j; in TEST_P() local 4627 glActiveTexture(GL_TEXTURE0 + textureUnit); in TEST_P() 4639 glUniform1i(uniformLocation, textureUnit); in TEST_P() 5093 int textureUnit = i * 2 + j; in TEST_P() local 5094 glActiveTexture(GL_TEXTURE0 + textureUnit); in TEST_P() 5106 glUniform1i(uniformLocation, textureUnit); in TEST_P() 5157 int textureUnit = l + 2 * (k + 2 * (j + 2 * i)); in TEST_P() local 5158 glActiveTexture(GL_TEXTURE0 + textureUnit); in TEST_P() 5172 glUniform1i(uniformLocation, textureUnit); in TEST_P() 5243 int textureUnit = arrayOffset + l + totalArrayLength * (j + 3 * i); in TEST_P() local [all …]
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsLongStressCase.hpp | 135 deUint32 textureUnit; member 164 , textureUnit (unit) in TextureSpec()
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/ |
D | TextureEnvTest.cpp | 299 GLenum textureUnit = rng.randomSelect(validUnits); in TEST_P() local 324 glActiveTexture(textureUnit); in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/ |
D | TextureEnvTest.cpp | 299 GLenum textureUnit = rng.randomSelect(validUnits); in TEST_P() local 324 glActiveTexture(textureUnit); in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | ProgramExecutableVk.cpp | 725 GLuint textureUnit = samplerBinding.boundTextureUnits[0]; in addTextureDescriptorSetDesc() local 727 ((*activeTextures)[textureUnit].texture->getImage().hasImmutableSampler())) in addTextureDescriptorSetDesc() 732 const TextureVk *textureVk = (*activeTextures)[textureUnit].texture; in addTextureDescriptorSetDesc() 1805 GLuint textureUnit = samplerBinding.boundTextureUnits[arrayElement]; in updateTexturesDescriptorSet() local 1806 TextureVk *textureVk = activeTextures[textureUnit].texture; in updateTexturesDescriptorSet() 1829 GLuint textureUnit = samplerBinding.boundTextureUnits[arrayElement]; in updateTexturesDescriptorSet() local 1830 const vk::TextureUnit &unit = activeTextures[textureUnit]; in updateTexturesDescriptorSet()
|
D | ContextVk.cpp | 1641 for (size_t textureUnit : activeTextures) in handleDirtyTexturesImpl() local 1643 const vk::TextureUnit &unit = mActiveTextures[textureUnit]; in handleDirtyTexturesImpl() 1654 executable->getSamplerShaderBitsForTextureUnitIndex(textureUnit); in handleDirtyTexturesImpl() 1690 executable->getSamplerShaderBitsForTextureUnitIndex(textureUnit); in handleDirtyTexturesImpl() 5296 for (size_t textureUnit : activeTextures) in updateActiveTextures() local 5298 gl::Texture *texture = textures[textureUnit]; in updateActiveTextures() 5299 gl::TextureType textureType = textureTypes[textureUnit]; in updateActiveTextures() 5308 context, textureType, executable->getSamplerFormatForTextureUnitIndex(textureUnit), in updateActiveTextures() 5315 vk::TextureUnit &activeTexture = mActiveTextures[textureUnit]; in updateActiveTextures() 5321 mActiveTexturesDesc.update(textureUnit, textureVk->getBufferViewSerial(), in updateActiveTextures() [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fSRGBDecodeTests.cpp | 313 void setTextureUnit (const deUint32 textureUnit); 380 void SRGBTestSampler::setTextureUnit (const deUint32 textureUnit) in setTextureUnit() argument 382 m_textureUnit = textureUnit; in setTextureUnit() 893 … bindSamplerToTexture (const int samplerIdx, const int textureIdx, const deUint32 textureUnit); 1213 …Case::bindSamplerToTexture (const int samplerIdx, const int textureIdx, const deUint32 textureUnit) in bindSamplerToTexture() argument 1215 deUint32 enumConversion = textureUnit - GL_TEXTURE0; in bindSamplerToTexture()
|
/third_party/vk-gl-cts/scripts/opengl/ |
D | gen_call_log_wrapper.py | 44 def textureUnit (name): function 57 "glActiveTexture": LogSpec({0: textureUnit}),
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | ContextVk.cpp | 2462 for (size_t textureUnit : activeTextures) in updateActiveTextures() local 2464 gl::Texture *texture = textures[textureUnit]; in updateActiveTextures() 2465 gl::Sampler *sampler = mState.getSampler(static_cast<uint32_t>(textureUnit)); in updateActiveTextures() 2466 gl::TextureType textureType = textureTypes[textureUnit]; in updateActiveTextures() 2502 mActiveTextures[textureUnit].texture = textureVk; in updateActiveTextures() 2503 mActiveTextures[textureUnit].sampler = samplerVk; in updateActiveTextures() 2506 mActiveTexturesDesc.update(textureUnit, textureVk->getSerial(), in updateActiveTextures()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
D | Context.cpp | 3153 …int textureUnit = programObject->getSamplerMapping(samplerType, samplerIndex); // OpenGL texture… in applyTextures() local 3155 if(textureUnit != -1) in applyTextures() 3159 Texture *texture = getSamplerTexture(textureUnit, textureType); in applyTextures() 3160 Sampler *samplerObject = mState.sampler[textureUnit]; in applyTextures() 3977 for(size_t textureUnit = 0; textureUnit < MAX_COMBINED_TEXTURE_IMAGE_UNITS; ++textureUnit) in detachSampler() local 3979 gl::BindingPointer<Sampler> &samplerBinding = mState.sampler[textureUnit]; in detachSampler()
|