Home
last modified time | relevance | path

Searched refs:unitNdx (Results 1 – 15 of 15) sorted by relevance

/external/deqp/modules/gles2/functional/
Des2fTextureUnitTests.cpp302 for (int unitNdx = 0; unitNdx < m_numUnits; unitNdx++) in MultiTexShader() local
304 if (m_unitTypes[unitNdx] == GL_TEXTURE_2D) in MultiTexShader()
367 DE_ASSERT(m_unitTypes[unitNdx] == GL_TEXTURE_CUBE_MAP); in MultiTexShader()
425 for (int unitNdx = 0; unitNdx < m_numUnits; unitNdx++) in makeSafeLods() local
433 …const float lodMax = calculateLodMax(m_lodDerivateParts[unitNdx], textureSizes[unitNdx], screenDer… in makeSafeLods()
434 …const float lodMin = calculateLodMin(m_lodDerivateParts[unitNdx], textureSizes[unitNdx], screenDer… in makeSafeLods()
443 m_transformations[unitNdx] = shrinkScaleMat * m_transformations[unitNdx]; in makeSafeLods()
444 m_lodDerivateParts[unitNdx] = calculateLodDerivateParts(m_transformations[unitNdx]); in makeSafeLods()
475 for (int unitNdx = 0; unitNdx < m_numUnits; unitNdx++) in shadeFragments() local
488 if (m_unitTypes[unitNdx] == GL_TEXTURE_2D) in shadeFragments()
[all …]
Des2fFboRenderTest.cpp140 void setUnit (sglr::Context& gl, deUint32 program, int unitNdx) in setUnit() argument
143 gl.uniform1i(gl.getUniformLocation(program, "u_sampler0"), unitNdx); in setUnit()
/external/deqp/modules/gles3/functional/
Des3fTextureUnitTests.cpp410 for (int unitNdx = 0; unitNdx < m_numUnits; unitNdx++) in MultiTexShader() local
412 if (m_unitTypes[unitNdx] == GL_TEXTURE_2D) in MultiTexShader()
470 else if (m_unitTypes[unitNdx] == GL_TEXTURE_CUBE_MAP) in MultiTexShader()
498 DE_ASSERT(m_unitTypes[unitNdx] == GL_TEXTURE_3D || m_unitTypes[unitNdx] == GL_TEXTURE_2D_ARRAY); in MultiTexShader()
510 if (m_unitTypes[unitNdx] == GL_TEXTURE_2D_ARRAY) in MultiTexShader()
581 for (int unitNdx = 0; unitNdx < m_numUnits; unitNdx++) in makeSafeLods() local
589 …const float lodMax = calculateLodMax(m_lodDerivateParts[unitNdx], textureSizes[unitNdx], screenDer… in makeSafeLods()
590 …const float lodMin = calculateLodMin(m_lodDerivateParts[unitNdx], textureSizes[unitNdx], screenDer… in makeSafeLods()
599 …m_transformations[unitNdx] = (m_unitTypes[unitNdx] == GL_TEXTURE_3D ? shrinkScaleMat3d : shrinkSca… in makeSafeLods()
600 m_lodDerivateParts[unitNdx] = calculateLodDerivateParts(m_transformations[unitNdx]); in makeSafeLods()
[all …]
Des3fFboTestUtil.hpp91 void setUnit (int samplerNdx, int unitNdx);
103 int unitNdx; member
Des3fFboTestUtil.cpp318 m_inputs[ndx].unitNdx = ndx; in Texture2DShader()
324 void Texture2DShader::setUnit (int inputNdx, int unitNdx) in setUnit() argument
326 m_inputs[inputNdx].unitNdx = unitNdx; in setUnit()
351 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); in setUniforms()
/external/deqp/modules/glshared/
DglsRandomShaderCase.cpp229 int unitNdx = uniformIter->getValue().asInt(0); in init() local
232 m_texManager.bindTexture(unitNdx, getTex2D()); in init()
234 m_texManager.bindTexture(unitNdx, getTexCube()); in init()
522 int unitNdx = i->first; in iterate() local
525 glActiveTexture(GL_TEXTURE0 + unitNdx); in iterate()
528 …executor.setTexture(unitNdx, &texture->getRefTexture(), glu::mapGLSampler(TEXTURE_WRAP_S, TEXTURE_… in iterate()
534 int unitNdx = i->first; in iterate() local
537 glActiveTexture(GL_TEXTURE0 + unitNdx); in iterate()
540 …executor.setTexture(unitNdx, &texture->getRefTexture(), glu::mapGLSampler(TEXTURE_WRAP_S, TEXTURE_… in iterate()
DglsShaderRenderCase.cpp314 tcu::Vec4 ShaderEvalContext::texture2D (int unitNdx, const tcu::Vec2& texCoords) in texture2D() argument
316 if (textures[unitNdx].tex2D) in texture2D()
317 …return textures[unitNdx].tex2D->sample(textures[unitNdx].sampler, texCoords.x(), texCoords.y(), 0.… in texture2D()
DglsShaderRenderCase.hpp167 tcu::Vec4 texture2D (int unitNdx, const tcu::Vec2& coords);
/external/deqp/framework/opengl/
DgluStrUtil.cpp73 int unitNdx = unitStr.texUnit - GL_TEXTURE0; in operator <<() local
74 if (unitNdx >= 0) in operator <<()
75 return str << "GL_TEXTURE" << unitNdx; in operator <<()
/external/deqp/framework/opengl/simplereference/
DsglrReferenceContext.cpp502 void ReferenceContext::setTex1DBinding (int unitNdx, Texture1D* texture) in setTex1DBinding() argument
504 if (m_textureUnits[unitNdx].tex1DBinding) in setTex1DBinding()
506 m_textures.releaseReference(m_textureUnits[unitNdx].tex1DBinding); in setTex1DBinding()
507 m_textureUnits[unitNdx].tex1DBinding = DE_NULL; in setTex1DBinding()
513 m_textureUnits[unitNdx].tex1DBinding = texture; in setTex1DBinding()
517 void ReferenceContext::setTex2DBinding (int unitNdx, Texture2D* texture) in setTex2DBinding() argument
519 if (m_textureUnits[unitNdx].tex2DBinding) in setTex2DBinding()
521 m_textures.releaseReference(m_textureUnits[unitNdx].tex2DBinding); in setTex2DBinding()
522 m_textureUnits[unitNdx].tex2DBinding = DE_NULL; in setTex2DBinding()
528 m_textureUnits[unitNdx].tex2DBinding = texture; in setTex2DBinding()
[all …]
DsglrReferenceContext.hpp795 const rc::Texture2D& getTexture2D (int unitNdx) const;
796 const rc::TextureCube& getTextureCube (int unitNdx) const;
/external/deqp/modules/gles31/functional/
Des31fFboTestUtil.hpp61 void setUnit (int samplerNdx, int unitNdx);
73 int unitNdx; member
Des31fFboTestUtil.cpp161 m_inputs[ndx].unitNdx = ndx; in Texture2DShader()
167 void Texture2DShader::setUnit (int inputNdx, int unitNdx) in setUnit() argument
169 m_inputs[inputNdx].unitNdx = unitNdx; in setUnit()
194 gl.uniform1i(gl.getUniformLocation(program, samplerName.c_str()), m_inputs[texNdx].unitNdx); in setUniforms()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp357 tcu::Vec4 ShaderEvalContext::texture2D (int unitNdx, const tcu::Vec2& texCoords) in texture2D() argument
359 if (textures[unitNdx].tex2D) in texture2D()
360 …return textures[unitNdx].tex2D->sample(textures[unitNdx].sampler, texCoords.x(), texCoords.y(), 0.… in texture2D()
DvktShaderRender.hpp153 tcu::Vec4 texture2D (int unitNdx, const tcu::Vec2& coords);