Lines Matching refs:texNdx
719 void upload2dTexture (int texNdx, sglr::Context& context);
720 void uploadCubeTexture (int texNdx, sglr::Context& context);
721 void upload2dArrayTexture (int texNdx, sglr::Context& context);
722 void upload3dTexture (int texNdx, sglr::Context& context);
804 for (int texNdx = 0; texNdx < m_numTextures; texNdx++) in init() local
947 int texNdx = m_unitTextures[i]; in init() local
948 GLenum type = m_textureTypes[texNdx]; in init()
949 tcu::TextureFormat fmt = glu::mapGLInternalFormat(m_textureParams[texNdx].internalFormat); in init()
955 num2dArrayLayers.push_back(m_textures2dArray[m_ndxTexType[texNdx]]->getNumLayers()); in init()
1007 int texNdx = m_unitTextures[i]; in iterate() local
1008 int texNdxInType = m_ndxTexType[texNdx]; in iterate()
1009 GLenum type = m_textureTypes[texNdx]; in iterate()
1055 void TextureUnitCase::upload2dTexture (int texNdx, sglr::Context& context) in upload2dTexture() argument
1057 int ndx2d = m_ndxTexType[texNdx]; in upload2dTexture()
1059 …ormatGl = glu::getTransferFormat(glu::mapGLInternalFormat(m_textureParams[texNdx].internalFormat)); in upload2dTexture()
1074 …context.texImage2D(GL_TEXTURE_2D, levelNdx, m_textureParams[texNdx].internalFormat, width, height,… in upload2dTexture()
1079 void TextureUnitCase::uploadCubeTexture (int texNdx, sglr::Context& context) in uploadCubeTexture() argument
1081 int ndxCube = m_ndxTexType[texNdx]; in uploadCubeTexture()
1083 …ormatGl = glu::getTransferFormat(glu::mapGLInternalFormat(m_textureParams[texNdx].internalFormat)); in uploadCubeTexture()
1100 …context.texImage2D(s_cubeFaceTargets[face], levelNdx, m_textureParams[texNdx].internalFormat, widt… in uploadCubeTexture()
1106 void TextureUnitCase::upload2dArrayTexture (int texNdx, sglr::Context& context) in upload2dArrayTexture() argument
1108 int ndx2dArray = m_ndxTexType[texNdx]; in upload2dArrayTexture()
1110 …ormatGl = glu::getTransferFormat(glu::mapGLInternalFormat(m_textureParams[texNdx].internalFormat)); in upload2dArrayTexture()
1127 …context.texImage3D(GL_TEXTURE_2D_ARRAY, levelNdx, m_textureParams[texNdx].internalFormat, width, h… in upload2dArrayTexture()
1132 void TextureUnitCase::upload3dTexture (int texNdx, sglr::Context& context) in upload3dTexture() argument
1134 int ndx3d = m_ndxTexType[texNdx]; in upload3dTexture()
1136 …ormatGl = glu::getTransferFormat(glu::mapGLInternalFormat(m_textureParams[texNdx].internalFormat)); in upload3dTexture()
1153 …context.texImage3D(GL_TEXTURE_3D, levelNdx, m_textureParams[texNdx].internalFormat, width, height,… in upload3dTexture()
1171 int texNdx = m_unitTextures[unitNdx]; in render() local
1176 context.bindTexture(m_textureTypes[texNdx], textureGLNames[texNdx]); in render()
1179 if (!isTextureSetUp[texNdx]) in render()
1183 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_WRAP_S, m_textureParams[texNdx].wrapModeS… in render()
1184 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_WRAP_T, m_textureParams[texNdx].wrapModeT… in render()
1185 if (m_textureTypes[texNdx] == GL_TEXTURE_3D) in render()
1186 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_WRAP_R, m_textureParams[texNdx].wrapModeR… in render()
1187 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_MIN_FILTER, m_textureParams[texNdx].minFi… in render()
1188 …context.texParameteri(m_textureTypes[texNdx], GL_TEXTURE_MAG_FILTER, m_textureParams[texNdx].magFi… in render()
1191 switch (m_textureTypes[texNdx]) in render()
1193 case GL_TEXTURE_2D: upload2dTexture(texNdx, context); break; in render()
1194 case GL_TEXTURE_CUBE_MAP: uploadCubeTexture(texNdx, context); break; in render()
1195 case GL_TEXTURE_2D_ARRAY: upload2dArrayTexture(texNdx, context); break; in render()
1196 case GL_TEXTURE_3D: upload3dTexture(texNdx, context); break; in render()
1201 isTextureSetUp[texNdx] = true; // Don't set up this texture's parameters and data again later. in render()