Home | History | Annotate | Download | only in functional

Lines Matching defs:texture

21  * \brief Texture unit usage tests.
69 // \note Cube map texture size is larger in order to make minifications possible - otherwise would need to display different faces at same time.
247 void makeSafeLods (const vector<IVec2>& textureSizes, const IVec2& viewportSize); // Modifies texture coordinates so that LODs aren't too close to x.5 or 0.0 .
569 int m_numTextures; //!< \note Needed in addition to m_numUnits since same texture may be bound to many texture units.
576 vector<int> m_unitTextures; //!< Which texture is used in a particular unit.
577 vector<int> m_ndx2dOrCube; //!< Index of a texture in either m_textures2d or m_texturesCube, depending on texture type.
621 m_numTextures = m_numUnits; // In most cases use one unit per texture.
623 m_numTextures = rnd.getInt(deMax32(1, m_numUnits - 2), m_numUnits); // Sometimes assign same texture to multiple units.
625 log << tcu::TestLog::Message << ("Using " + de::toString(m_numUnits) + " texture unit(s) and " + de::toString(m_numTextures) + " texture(s)").c_str() << tcu::TestLog::EndMessage;
635 // Either fixed or randomized target types (2d or cube), and randomized parameters for every texture.
670 // Create new texture.
674 m_ndx2dOrCube.push_back((int)m_textures2d.size()); // Remember the index this texture has in the 2d array.
679 m_ndx2dOrCube.push_back((int)m_texturesCube.size()); // Remember the index this texture has in the cube array.
688 // Fill with grid texture.
722 // Assign a texture index to each unit.
726 // \note Every texture is used at least once.
730 // Assign a random texture to remaining units.
828 vector<bool> isTextureSetUp(m_numTextures, false); // \note Same texture may be bound to multiple units, but we only want to set up parameters and data once per texture.
837 // Bind texture to unit.
843 // Binding this texture for first time, so set parameters and data.
853 const tcu::Texture2D* texture = m_textures2d[ndx2d];
854 bool mipmaps = (deIsPowerOfTwo32(texture->getWidth()) && deIsPowerOfTwo32(texture->getHeight()));
855 int numLevels = mipmaps ? deLog2Floor32(de::max(texture->getWidth(), texture->getHeight()))+1 : 1;
861 tcu::ConstPixelBufferAccess access = texture->getLevel(levelNdx);
875 const tcu::TextureCube* texture = m_texturesCube[ndxCube];
876 bool mipmaps = deIsPowerOfTwo32(texture->getSize()) != DE_FALSE;
877 int numLevels = mipmaps ? deLog2Floor32(texture->getSize())+1 : 1;
885 tcu::ConstPixelBufferAccess access = texture->getLevelFace(levelNdx, (tcu::CubeFace)face);
896 isTextureSetUp[texNdx] = true; // Don't set up this texture's parameters and data again later.
914 // Delete previously generated texture names.
921 : TestCaseGroup(context, "units", "Texture Unit Usage Tests")