Home
last modified time | relevance | path

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

/external/angle/src/libANGLE/
DProgramExecutable.cpp200 for (GLint textureUnit : samplerBinding.boundTextureUnits) in updateActiveSamplers() local
202 if (++mActiveSamplerRefCounts[textureUnit] == 1) in updateActiveSamplers()
204 mActiveSamplerTypes[textureUnit] = samplerBinding.textureType; in updateActiveSamplers()
205 mActiveSamplerFormats[textureUnit] = samplerBinding.format; in updateActiveSamplers()
206 mActiveSamplerShaderBits[textureUnit] = samplerUniform.activeShaders(); in updateActiveSamplers()
210 if (mActiveSamplerTypes[textureUnit] != samplerBinding.textureType) in updateActiveSamplers()
212 mActiveSamplerTypes[textureUnit] = TextureType::InvalidEnum; in updateActiveSamplers()
214 if (mActiveSamplerFormats[textureUnit] != samplerBinding.format) in updateActiveSamplers()
216 mActiveSamplerFormats[textureUnit] = SamplerFormat::InvalidEnum; in updateActiveSamplers()
219 mActiveSamplersMask.set(textureUnit); in updateActiveSamplers()
[all …]
DStream.cpp42 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()
DState.h290 void setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler);
291 SamplerID getSamplerId(GLuint textureUnit) const in getSamplerId() argument
293 ASSERT(textureUnit < mSamplers.size()); in getSamplerId()
294 return mSamplers[textureUnit].id(); in getSamplerId()
297 Sampler *getSampler(GLuint textureUnit) const { return mSamplers[textureUnit].get(); } in getSampler() argument
697 void onActiveTextureChange(const Context *context, size_t textureUnit);
700 void onActiveTextureStateChange(const Context *context, size_t textureUnit);
DState.cpp1486 for (size_t textureUnit = 0; textureUnit < mSamplerTextures[type].size(); ++textureUnit) in initializeZeroTextures() local
1488 mSamplerTextures[type][textureUnit].set(context, zeroTextures[type].get()); in initializeZeroTextures()
1498 void State::setSamplerBinding(const Context *context, GLuint textureUnit, Sampler *sampler) in setSamplerBinding() argument
1500 if (mSamplers[textureUnit].get() == sampler) in setSamplerBinding()
1503 mSamplers[textureUnit].set(context, sampler); in setSamplerBinding()
1506 setSamplerDirty(textureUnit); in setSamplerBinding()
1507 onActiveTextureChange(context, textureUnit); in setSamplerBinding()
1508 onActiveTextureStateChange(context, textureUnit); in setSamplerBinding()
3308 void State::onActiveTextureChange(const Context *context, size_t textureUnit) in onActiveTextureChange() argument
3312 TextureType type = mExecutable->getActiveSamplerTypes()[textureUnit]; in onActiveTextureChange()
[all …]
DStream.h133 EGLint textureUnit; member
DGLES1Shaders.inc78 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;
DProgram.cpp2995 for (size_t textureUnit : executable.mActiveSamplersMask) in validateSamplersImpl() local
2997 if (executable.mActiveSamplerTypes[textureUnit] == TextureType::InvalidEnum) in validateSamplersImpl()
3003 << textureUnit << ")."; in validateSamplersImpl()
DContext.cpp1071 void Context::bindSampler(GLuint textureUnit, SamplerID samplerHandle) in bindSampler() argument
1073 ASSERT(textureUnit < static_cast<GLuint>(mState.mCaps.maxCombinedTextureImageUnits)); in bindSampler()
1076 mState.setSamplerBinding(this, textureUnit, sampler); in bindSampler()
1077 mSamplerObserverBindings[textureUnit].bind(sampler); in bindSampler()
/external/swiftshader/src/OpenGL/libGLES_CM/
DContext.cpp114 mState.textureUnit[i].color = {0, 0, 0, 0}; in Context()
115 mState.textureUnit[i].environmentMode = GL_MODULATE; in Context()
116 mState.textureUnit[i].combineRGB = GL_MODULATE; in Context()
117 mState.textureUnit[i].combineAlpha = GL_MODULATE; in Context()
118 mState.textureUnit[i].src0RGB = GL_TEXTURE; in Context()
119 mState.textureUnit[i].src1RGB = GL_PREVIOUS; in Context()
120 mState.textureUnit[i].src2RGB = GL_CONSTANT; in Context()
121 mState.textureUnit[i].src0Alpha = GL_TEXTURE; in Context()
122 mState.textureUnit[i].src1Alpha = GL_PREVIOUS; in Context()
123 mState.textureUnit[i].src2Alpha = GL_CONSTANT; in Context()
[all …]
DContext.h290 TextureUnit textureUnit[MAX_TEXTURE_UNITS]; member
/external/mesa3d/src/mesa/swrast/
Ds_texcombine.c87 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 …]
/external/angle/src/tests/gl_tests/
DGLSLTest.cpp3357 int textureUnit = i * 2 + j; in TEST_P() local
3358 glActiveTexture(GL_TEXTURE0 + textureUnit); in TEST_P()
3370 glUniform1i(uniformLocation, textureUnit); in TEST_P()
3449 int textureUnit = i * 2 + j; in TEST_P() local
3450 glActiveTexture(GL_TEXTURE0 + textureUnit); in TEST_P()
3462 glUniform1i(uniformLocation, textureUnit); in TEST_P()
3517 int textureUnit = l + 2 * (k + 2 * (j + 2 * i)); in TEST_P() local
3518 glActiveTexture(GL_TEXTURE0 + textureUnit); in TEST_P()
3532 glUniform1i(uniformLocation, textureUnit); in TEST_P()
3607 int textureUnit = arrayOffset + l + totalArrayLength * (j + 3 * i); in TEST_P() local
[all …]
/external/deqp/modules/glshared/
DglsLongStressCase.hpp135 deUint32 textureUnit; member
164 , textureUnit (unit) in TextureSpec()
DglsLongStressCase.cpp1335 …extureNamePrefix + toString(texSpecIndices[i])).toUnit(programContext.textureSpecs[i].textureUnit); in iterate()
/external/angle/src/tests/gl_tests/gles1/
DTextureEnvTest.cpp299 GLenum textureUnit = rng.randomSelect(validUnits); in TEST_P() local
324 glActiveTexture(textureUnit); in TEST_P()
/external/deqp/modules/gles31/functional/
Des31fSRGBDecodeTests.cpp312 void setTextureUnit (const deUint32 textureUnit);
379 void SRGBTestSampler::setTextureUnit (const deUint32 textureUnit) in setTextureUnit() argument
381 m_textureUnit = textureUnit; in setTextureUnit()
891 … bindSamplerToTexture (const int samplerIdx, const int textureIdx, const deUint32 textureUnit);
1191 …Case::bindSamplerToTexture (const int samplerIdx, const int textureIdx, const deUint32 textureUnit) in bindSamplerToTexture() argument
1193 deUint32 enumConversion = textureUnit - GL_TEXTURE0; in bindSamplerToTexture()
Des31fFboSRGBWriteControlTests.cpp478 void bind (const int textureUnit);
536 void TestTexture2D::bind (const int textureUnit) in bind() argument
538 m_textureUnit = textureUnit; in bind()
/external/deqp/scripts/opengl/
Dgen_call_log_wrapper.py44 def textureUnit (name): function
57 "glActiveTexture": LogSpec({0: textureUnit}),
/external/angle/src/libANGLE/renderer/vulkan/
DContextVk.cpp1263 for (size_t textureUnit : activeTextures) in handleDirtyTexturesImpl() local
1265 const vk::TextureUnit &unit = mActiveTextures[textureUnit]; in handleDirtyTexturesImpl()
1284 executable->getSamplerShaderBitsForTextureUnitIndex(textureUnit); in handleDirtyTexturesImpl()
3682 for (size_t textureUnit : activeTextures) in updateActiveTextures() local
3684 gl::Texture *texture = textures[textureUnit]; in updateActiveTextures()
3685 gl::Sampler *sampler = mState.getSampler(static_cast<uint32_t>(textureUnit)); in updateActiveTextures()
3686 gl::TextureType textureType = textureTypes[textureUnit]; in updateActiveTextures()
3709 mActiveTextures[textureUnit].texture = textureVk; in updateActiveTextures()
3710 mActiveTextures[textureUnit].sampler = samplerVk; in updateActiveTextures()
3713 mActiveTexturesDesc.update(textureUnit, textureVk->getSerial(), samplerSerial); in updateActiveTextures()
DProgramExecutableVk.cpp1301 GLuint textureUnit = samplerBinding.boundTextureUnits[arrayElement]; in updateTexturesDescriptorSet() local
1302 TextureVk *textureVk = activeTextures[textureUnit].texture; in updateTexturesDescriptorSet()
1303 SamplerVk *samplerVk = activeTextures[textureUnit].sampler; in updateTexturesDescriptorSet()
/external/swiftshader/src/OpenGL/libGLESv2/
DContext.cpp3153 …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()
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DStateManager11.cpp2740 GLint textureUnit = mProgramD3D->getSamplerMapping(shaderType, samplerIndex, caps); in applyTexturesForSRVs() local
2741 ASSERT(textureUnit != -1); in applyTexturesForSRVs()
2742 gl::Texture *texture = completeTextures[textureUnit]; in applyTexturesForSRVs()
2747 gl::Sampler *samplerObject = glState.getSampler(textureUnit); in applyTexturesForSRVs()
3297 GLint textureUnit = mProgramD3D->getSamplerMapping(type, i, context->getCaps()); in generateSwizzlesForShader() local
3298 if (textureUnit != -1) in generateSwizzlesForShader()
3300 gl::Texture *texture = glState.getSamplerTexture(textureUnit, textureType); in generateSwizzlesForShader()
/external/angle/src/libANGLE/renderer/metal/
DProgramMtl.mm891 GLuint textureUnit = samplerBinding.boundTextureUnits[arrayElement];
892 gl::Texture *texture = completeTextures[textureUnit];
DContextMtl.mm1543 for (size_t textureUnit : activeTextures)
1545 gl::Texture *texture = textures[textureUnit];
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DRenderer9.cpp3194 GLint textureUnit = programD3D->getSamplerMapping(shaderType, samplerIndex, caps); in applyTextures() local
3195 ASSERT(textureUnit != -1); in applyTextures()
3196 gl::Texture *texture = activeTextures[textureUnit]; in applyTextures()
3201 gl::Sampler *samplerObject = glState.getSampler(textureUnit); in applyTextures()